From 9b57c56165e1c07ec044aad9548d7552e2626611 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 12 Jan 2023 14:12:53 +0530 Subject: [PATCH] Add 8.45 - Build automake --- scripts/chapter8/8.45-automake.sh | 26 ++++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 scripts/chapter8/8.45-automake.sh diff --git a/scripts/chapter8/8.45-automake.sh b/scripts/chapter8/8.45-automake.sh new file mode 100644 index 0000000..97221b2 --- /dev/null +++ b/scripts/chapter8/8.45-automake.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +cd /sources +tar xf automake-1.16.5.tar.xz +cd automake-1.16.5 + +./configure --prefix=/usr --docdir=/usr/share/doc/automake-1.16.5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 check + +make install + +cd /sources +rm -rf automake-1.16.5 diff --git a/scripts/main.sh b/scripts/main.sh index aede54a..c22ade0 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1079,3 +1079,15 @@ then stop_script "chapter8/8.44-autoconf.sh" fi +# Chapter 8.45 +# ============ +echo "Building automake" +su -c "bash $SCRIPT/chapter8/8.45-automake.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.45-automake.sh" +fi +