From 8cac45617835bb6469a1cffc655982940fda3072 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 12 Jan 2023 19:24:37 +0530 Subject: [PATCH] Add 8.65 - Build make --- scripts/chapter8/8.65-make.sh | 26 ++++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 scripts/chapter8/8.65-make.sh diff --git a/scripts/chapter8/8.65-make.sh b/scripts/chapter8/8.65-make.sh new file mode 100644 index 0000000..3daf534 --- /dev/null +++ b/scripts/chapter8/8.65-make.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +cd /sources +tar xf make-4.3.tar.gz +cd make-4.3 + +./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 make-4.3 diff --git a/scripts/main.sh b/scripts/main.sh index ce6ed58..63f71d7 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1318,3 +1318,15 @@ then stop_script "chapter8/8.64-libpipeline.sh" fi +# Chapter 8.65 +# ============ +echo "Building make" +su -c "bash $SCRIPT/chapter8/8.65-make.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.65-make.sh" +fi +