diff --git a/scripts/chapter8/8.61-gzip.sh b/scripts/chapter8/8.61-gzip.sh new file mode 100644 index 0000000..c649288 --- /dev/null +++ b/scripts/chapter8/8.61-gzip.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +cd /sources +tar xf gzip-1.12.tar.xz +cd gzip-1.12 + +./configure --prefix=/usr + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make check + +make install + +cd /sources +rm -rf gzip-1.12 diff --git a/scripts/main.sh b/scripts/main.sh index 54e34ec..bac7eac 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1270,3 +1270,15 @@ then stop_script "chapter8/8.60-bash.sh" fi +# Chapter 8.61 +# ============ +echo "Building gzip" +su -c "bash $SCRIPT/chapte8/8.61-gzip.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapte8/8.61-gzip.sh" +fi +