Add 7.8 - Build bison

This commit is contained in:
Aditya 2023-01-10 10:33:22 +05:30
parent fd41950ec7
commit dcae147ffc
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,26 @@
#!/bin/bash
cd $LFS/sources
tar xf bison-3.8.2.tar.xz
cd bison-3.8.2
./configure --prefix=/usr \
--docdir=/usr/share/doc/bison-3.8.2
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make install
cd $LFS/sources
rm -rf bison-3.8.2

View file

@ -468,3 +468,15 @@ then
stop_script "chapter7/7.7-gettext.sh"
fi
# Chapter 7.8
# ===========
echo "Building bison"
su -c "bash $PWD/chapter7/7.8-bison.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter7/7.8-bison.sh"
fi