Add 8.14 - Build flex

This commit is contained in:
Aditya 2023-01-10 15:34:10 +05:30
parent 66f1a4050a
commit 39d1bc43ee
2 changed files with 43 additions and 0 deletions

View 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

View file

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