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