mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2025-01-10 14:42:52 +00:00
Add 8.57 - Build gawk
This commit is contained in:
parent
7e52f4ee9f
commit
b0372a92bf
2 changed files with 42 additions and 0 deletions
30
scripts/chapter8/8.57-gawk.sh
Normal file
30
scripts/chapter8/8.57-gawk.sh
Normal 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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue