diff --git a/scripts/chapter8/8.10-file.sh b/scripts/chapter8/8.10-file.sh new file mode 100644 index 0000000..36540b4 --- /dev/null +++ b/scripts/chapter8/8.10-file.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +cd /sources +tar xf file-5.42.tar.gz +cd file-5.42 + +./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 file-5.42 + diff --git a/scripts/main.sh b/scripts/main.sh index b253a9b..b3749dc 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -654,3 +654,16 @@ then stop_script "chapter8/8.9-zstd.sh" fi +# Chapter 8.10 +# ============ +echo "Building file" +su -c "bash $SCRIPT/chapter8/8.10-file.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.10-file.sh" +fi + +