Add 8.57 - Build gawk

This commit is contained in:
Aditya 2023-01-12 15:29:59 +05:30
parent 7e52f4ee9f
commit b0372a92bf
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,30 @@
#!/bin/bash
cd /sources
tar xf gawk-5.1.1.tar.xz
cd gawk-5.1.1
sed -i 's/extras//' Makefile.in
./configure --prefix=/usr
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make check
make install
mkdir -pv /usr/share/doc/gawk-5.1.1
cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-5.1.1
cd /sources
rm -rf gawk-5.1.1

View file

@ -1222,3 +1222,15 @@ then
stop_script "chapter8/8.56-diffutils.sh"
fi
# Chapter 8.57
# ============
echo "Building gawk"
su -c "bash $SCRIPT/chapter8/8.57-gawk.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.57-gawk.sh"
fi