diff --git a/scripts/chapter8/8.67-tar.sh b/scripts/chapter8/8.67-tar.sh new file mode 100644 index 0000000..303c693 --- /dev/null +++ b/scripts/chapter8/8.67-tar.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +cd /sources +tar xf tar-1.34.tar.xz +cd tar-1.34 + +FORCE_UNSAFE_CONFIGURE=1 \ +./configure --prefix=/usr + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make check + +make install +make -C doc install-html docdir=/usr/share/doc/tar-1.34 diff --git a/scripts/main.sh b/scripts/main.sh index 608b930..04bb8c4 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1342,3 +1342,15 @@ then stop_script "chapter8/8.66-patch.sh" fi +# Chapter 8.67 +# ============ +echo "Building tar" +su -c "bash $SCRIPT/chapter8/8.67-tar.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + exit 1 +fi +