diff --git a/scripts/chapter8/8.37-gperf.sh b/scripts/chapter8/8.37-gperf.sh new file mode 100644 index 0000000..862b92e --- /dev/null +++ b/scripts/chapter8/8.37-gperf.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +cd /sources +tar xf gperf-3.1.tar.gz +cd gperf-3.1 + +./configure --prefix=/usr --docdir=/usr/share/doc/gperf-3.1 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j1 check + +make install + +cd /sources +rm -rf gperf-3.1 diff --git a/scripts/main.sh b/scripts/main.sh index b6f57a9..efb844f 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -978,3 +978,15 @@ then stop_script "chapter8/8.36-gdbm.sh" fi +# Chapter 8.37 +# ============ +echo "Building gperf" +su -c "bash $SCRIPT/chapter8/8.37-gperf.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.37-gperf.sh" +fi +