mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.16 - Build expect
This commit is contained in:
parent
b15a589db7
commit
7eb86e2c3f
2 changed files with 44 additions and 0 deletions
32
scripts/chapter8/8.16-expect.sh
Normal file
32
scripts/chapter8/8.16-expect.sh
Normal 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue