mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 11:52:52 +00:00
Add 8.12 - Build m4
This commit is contained in:
parent
f0a584b52d
commit
230b9ba210
2 changed files with 39 additions and 0 deletions
27
scripts/chapter8/8.12-m4.sh
Normal file
27
scripts/chapter8/8.12-m4.sh
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue