From 46b76d8559262ef79e71f5a40d379aec31c0db6b Mon Sep 17 00:00:00 2001 From: Aditya Date: Mon, 9 Jan 2023 15:16:50 +0530 Subject: [PATCH] Add 6.14 - Building sed --- scripts/chapter6/6.14-sed.sh | 26 ++++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 scripts/chapter6/6.14-sed.sh diff --git a/scripts/chapter6/6.14-sed.sh b/scripts/chapter6/6.14-sed.sh new file mode 100644 index 0000000..e32e133 --- /dev/null +++ b/scripts/chapter6/6.14-sed.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +cd $LFS/sources +tar xf sed-4.8.tar.xz +cd sed-4.8 + +./configure --prefix=/usr \ + --host=$LFS_TGT + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make DESTDIR=$LFS install + +cd $LFS/sources +rm -rf sed-4.8 + diff --git a/scripts/main.sh b/scripts/main.sh index bd08c3d..378a337 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -335,3 +335,15 @@ then stop_script "chapter6/6.13-patch.sh" fi +# Chapter 6.14 +# ============ +echo "Building sed" +su - lfs -c "bash $PWD/chapter6/6.14-sed.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter6/6.14-sed.sh" +fi +