Add 6.9 - Build gawk

This commit is contained in:
Aditya 2023-01-09 14:06:47 +05:30
parent d17076689b
commit fdfb551881
2 changed files with 41 additions and 0 deletions

View 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

View file

@ -275,3 +275,15 @@ then
stop_script "chapter6/6.8-findutils.sh" stop_script "chapter6/6.8-findutils.sh"
fi 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