diff --git a/scripts/chapter7/7.8-bison.sh b/scripts/chapter7/7.8-bison.sh new file mode 100644 index 0000000..330d17f --- /dev/null +++ b/scripts/chapter7/7.8-bison.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +cd $LFS/sources +tar xf bison-3.8.2.tar.xz +cd bison-3.8.2 + +./configure --prefix=/usr \ + --docdir=/usr/share/doc/bison-3.8.2 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make install + +cd $LFS/sources +rm -rf bison-3.8.2 + diff --git a/scripts/main.sh b/scripts/main.sh index f1e9609..f037020 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -468,3 +468,15 @@ then stop_script "chapter7/7.7-gettext.sh" fi +# Chapter 7.8 +# =========== +echo "Building bison" +su -c "bash $PWD/chapter7/7.8-bison.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter7/7.8-bison.sh" +fi +