mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 7.8 - Build bison
This commit is contained in:
parent
fd41950ec7
commit
dcae147ffc
2 changed files with 38 additions and 0 deletions
26
scripts/chapter7/7.8-bison.sh
Normal file
26
scripts/chapter7/7.8-bison.sh
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue