Add 8.37 - Build gperf

This commit is contained in:
Aditya 2023-01-12 11:12:12 +05:30
parent fa5e3a648b
commit 37e5539358
2 changed files with 38 additions and 0 deletions

View 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

View file

@ -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