mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.37 - Build gperf
This commit is contained in:
parent
fa5e3a648b
commit
37e5539358
2 changed files with 38 additions and 0 deletions
26
scripts/chapter8/8.37-gperf.sh
Normal file
26
scripts/chapter8/8.37-gperf.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf gperf-3.1.tar.gz
|
||||
cd gperf-3.1
|
||||
|
||||
./configure --prefix=/usr --docdir=/usr/share/doc/gperf-3.1
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j1 check
|
||||
|
||||
make install
|
||||
|
||||
cd /sources
|
||||
rm -rf gperf-3.1
|
|
@ -978,3 +978,15 @@ then
|
|||
stop_script "chapter8/8.36-gdbm.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.37
|
||||
# ============
|
||||
echo "Building gperf"
|
||||
su -c "bash $SCRIPT/chapter8/8.37-gperf.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.37-gperf.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue