diff --git a/scripts/chapter8/8.32-bison.sh b/scripts/chapter8/8.32-bison.sh new file mode 100644 index 0000000..6cf5fdc --- /dev/null +++ b/scripts/chapter8/8.32-bison.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +cd /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 check + +make install + +cd /sources +rm -rf bison-3.8.2 diff --git a/scripts/main.sh b/scripts/main.sh index fd59f9e..8435036 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -918,3 +918,15 @@ then stop_script "chapter8/8.31-gettext.sh" fi +# Chapter 8.32 +# ============ +echo "Building bison" +su -c "bash $SCRIPT/chapter8/8.32-bison.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.32-bison.sh" +fi +