Add 8.16 - Build expect

This commit is contained in:
Aditya 2023-01-10 15:43:29 +05:30
parent b15a589db7
commit 7eb86e2c3f
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,32 @@
#!/bin/bash
cd /sources
tar xf expect5.45.4.tar.gz
cd expect5.45.4
./configure --prefix=/usr \
--with-tcl=/usr/lib \
--enable-shared \
--mandir=/usr/share/man \
--with-tclinclude=/usr/include
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make test
make install
ln -svf expect5.45.4/libexpect5.45.4.so /usr/lib
cd /sources
rm -rf expect5.45.4

View file

@ -726,3 +726,15 @@ then
stop_script "chapter8/8.15-tcl.sh" stop_script "chapter8/8.15-tcl.sh"
fi fi
# Chapter 8.16
# ============
echo "Building expect"
su -c "bash $SCRIPT/chapter8/8.16-expect.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
exit 1
fi