mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 8.14 - Build flex
This commit is contained in:
parent
66f1a4050a
commit
39d1bc43ee
2 changed files with 43 additions and 0 deletions
31
scripts/chapter8/8.14-flex.sh
Normal file
31
scripts/chapter8/8.14-flex.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf flex-2.6.4.tar.gz
|
||||
flex-2.6.4
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--docdir=/usr/share/doc/flex-2.6.4 \
|
||||
--disable-static
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make install
|
||||
|
||||
ln -sv flex /usr/bin/lex
|
||||
|
||||
cd /sources
|
||||
rm -rf flex-2.6.4
|
||||
|
|
@ -702,3 +702,15 @@ then
|
|||
stop_script "chapter8/8.13-bc.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.14
|
||||
# ============
|
||||
echo "Building flex"
|
||||
su -c "bash $SCRIPT/chapter8/8.14-flex.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.14-flex.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue