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 +