lfs-scripts/scripts/chapter8/8.57-gawk.sh
2023-01-12 15:29:59 +05:30

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