From 4361a1c93186c6ed78f24caf46a94e7367e6203d Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 12 Jan 2023 11:17:27 +0530 Subject: [PATCH] Add 8.38 - Build expat --- scripts/chapter8/8.38-expat.sh | 30 ++++++++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 scripts/chapter8/8.38-expat.sh diff --git a/scripts/chapter8/8.38-expat.sh b/scripts/chapter8/8.38-expat.sh new file mode 100644 index 0000000..44a576f --- /dev/null +++ b/scripts/chapter8/8.38-expat.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +cd /sources +tar xf expat-2.4.8.tar.xz +cd expat-2.4.8 + +./configure --prefix=/usr \ + --disable-static \ + --docdir=/usr/share/doc/expat-2.4.8 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make check + +make install + +install -v -m644 doc/*.{html,css} /usr/share/doc/expat-2.4.8 + +cd /sources +rm -rf expat-2.4.8 diff --git a/scripts/main.sh b/scripts/main.sh index efb844f..b517093 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -990,3 +990,15 @@ then stop_script "chapter8/8.37-gperf.sh" fi +# Chapter 8.38 +# ============ +echo "Building expat" +su -c "bash $SCRIPT/chapter8/8.38-expat.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.38-expat.sh" +fi +