Add 6.14 - Building sed

This commit is contained in:
Aditya 2023-01-09 15:16:50 +05:30
parent 2e34af59da
commit 46b76d8559
2 changed files with 38 additions and 0 deletions

View file

@ -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

View file

@ -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