diff --git a/scripts/chapter8/8.59-groff.sh b/scripts/chapter8/8.59-groff.sh new file mode 100644 index 0000000..7601142 --- /dev/null +++ b/scripts/chapter8/8.59-groff.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +cd /sources +tar xf groff-1.22.4.tar.gz +cd groff-1.22.4 + +PAGE=A4 ./configure --prefix=/usr + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j1 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make install + +cd /sources +rm -rf groff-1.22.4 diff --git a/scripts/main.sh b/scripts/main.sh index edc1751..efe392f 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1246,3 +1246,15 @@ then stop_script "chapter8/8.58-findutils.sh" fi +# Chapter 8.59 +# ============ +echo "Building groff" +su -c "bash $SCRIPT/chapter8/8.59-groff.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.59-groff.sh" +fi +