mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 6.14 - Building sed
This commit is contained in:
parent
2e34af59da
commit
46b76d8559
2 changed files with 38 additions and 0 deletions
26
scripts/chapter6/6.14-sed.sh
Normal file
26
scripts/chapter6/6.14-sed.sh
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue