Add 8.12 - Build m4

This commit is contained in:
Aditya 2023-01-10 15:26:58 +05:30
parent f0a584b52d
commit 230b9ba210
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,27 @@
#!/bin/bash
cd /sources
tar xf m4-1.4.19.tar.xz
cd m4-1.4.19
./configure --prefix=/usr
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make check
make install
cd /sources
rm -rf m4-1.4.19

View file

@ -678,3 +678,15 @@ then
stop_script "chapter8/8.11-readline.sh"
fi
# Chapter 8.12
# ============
echo "Building m4"
su -c "bash $SCRIPT/chapter8/8.12-m4.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.12-m4.sh"
fi