From a5863e099139da63d1dfa3ed9e69451f2905e198 Mon Sep 17 00:00:00 2001 From: Aditya Date: Tue, 10 Jan 2023 10:51:16 +0530 Subject: [PATCH] Add 7.11 - Build texinfo --- scripts/chapter7/7.11-texinfo.sh | 25 +++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 scripts/chapter7/7.11-texinfo.sh diff --git a/scripts/chapter7/7.11-texinfo.sh b/scripts/chapter7/7.11-texinfo.sh new file mode 100644 index 0000000..75eb834 --- /dev/null +++ b/scripts/chapter7/7.11-texinfo.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +cd $LFS/sources +tar xf texinfo-6.8.tar.xz +cd texinfo-6.8 + +./configure --prefix=/usr + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make install + +cd $LFS/sources +rm -rf texinfo-6.8 + diff --git a/scripts/main.sh b/scripts/main.sh index b1cc4b9..707ad4b 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -505,3 +505,15 @@ then stop_script "chapter7/7.10-Python.sh" fi +# Chapter 7.11 +# ============ +echo "Building texinfo" +su -c "bash $PWD/chapter7/7.11-texinfo.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter7/7.11-texinfo.sh" +fi +