diff --git a/scripts/chapter8/8.22-attr.sh b/scripts/chapter8/8.22-attr.sh new file mode 100644 index 0000000..eaf97ac --- /dev/null +++ b/scripts/chapter8/8.22-attr.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +cd /sources +tar xf attr-2.5.1.tar.gz +cd attr-2.5.1 + +./configure --prefix=/usr \ + --disable-static \ + --sysconfdir=/etc \ + --docdir=/usr/share/doc/attr-2.5.1 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make check + +make install + +cd /sources +rm -rf attr-2.5.1 + diff --git a/scripts/main.sh b/scripts/main.sh index bd1181a..4d17191 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -798,3 +798,15 @@ then stop_script "chapter8/8.21-mpc.sh" fi +# Chapter 8.22 +# ============ +echo "Building attr" +su -c "bash $SCRIPT/chapter8/8.22-attr.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.22-attr.sh" +fi +