mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.29 - Build sed
This commit is contained in:
parent
247b542db0
commit
ae7aaf3463
2 changed files with 44 additions and 0 deletions
31
scripts/chapter8/8.29-sed.sh
Normal file
31
scripts/chapter8/8.29-sed.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf sed-4.8.tar.xz
|
||||
cd sed-4.8
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make html
|
||||
|
||||
chown -Rv tester .
|
||||
su tester -c "PATH=$PATH make check"
|
||||
|
||||
make install
|
||||
install -d -m755 /usr/share/doc/sed-4.8
|
||||
install -m644 doc/sed.html /usr/share/doc/sed-4.8
|
||||
|
||||
cd /sources
|
||||
rm -rf sed-4.8
|
|
@ -881,3 +881,16 @@ then
|
|||
stop_script "chapter8/8.28-ncurses.sh"
|
||||
fi
|
||||
|
||||
|
||||
# Chapter 8.29
|
||||
# ============
|
||||
echo "Building sed"
|
||||
su -c "bash $SCRIPT/chapter8/8.29-sed.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.29-sed.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue