#!/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