mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 6.9 - Build gawk
This commit is contained in:
parent
d17076689b
commit
fdfb551881
2 changed files with 41 additions and 0 deletions
29
scripts/chapter6/6.9-gawk.sh
Normal file
29
scripts/chapter6/6.9-gawk.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $LFS/sources
|
||||
tar xf gawk-5.1.1.tar.xz
|
||||
cd gawk-5.1.1
|
||||
|
||||
sed -i 's/extras//' Makefile.in
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--host=$LFS_TGT \
|
||||
--build=$(build-aux/config.guess)
|
||||
|
||||
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 gawk-5.1.1
|
||||
|
|
@ -275,3 +275,15 @@ then
|
|||
stop_script "chapter6/6.8-findutils.sh"
|
||||
fi
|
||||
|
||||
# Chapter 6.9
|
||||
# ===========
|
||||
echo "Building gawk"
|
||||
su - lfs -c "bash $PWD/chapter6/6.9-gawk.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter6/6.9-gawk.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue