mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-22 03:52:52 +00:00
30 lines
399 B
Bash
30 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
|