From 3cc7c2fdda1cdfb978d2c2c1b20db5125986ef51 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 12 Jan 2023 15:42:31 +0530 Subject: [PATCH] Add 8.59 - Build groff --- scripts/chapter8/8.59-groff.sh | 24 ++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 scripts/chapter8/8.59-groff.sh 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 +