mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2025-02-05 17:00:04 +00:00
31 lines
399 B
Bash
31 lines
399 B
Bash
|
#!/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
|