mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.34 - Build bash
This commit is contained in:
parent
5f67184967
commit
edb13908fe
2 changed files with 51 additions and 0 deletions
39
scripts/chapter8/8.34-bash.sh
Normal file
39
scripts/chapter8/8.34-bash.sh
Normal file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /source
|
||||
tar xf bash-5.1.16.tar.gz
|
||||
cd bash-5.1.16
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--docdir=/usr/share/doc/bash-5.1.16 \
|
||||
--without-bash-malloc \
|
||||
--with-installed-readline
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
chown -Rv tester .
|
||||
|
||||
su -s /usr/bin/expect tester << EOF
|
||||
set timeout -1
|
||||
spawn make tests
|
||||
expect eof
|
||||
lassign [wait] _ _ _ value
|
||||
exit $value
|
||||
EOF
|
||||
|
||||
make install
|
||||
|
||||
exec /usr/bin/bash --login
|
||||
|
||||
cd /source
|
||||
rm -rf bash-5.1.16
|
|
@ -942,3 +942,15 @@ then
|
|||
stop_script "chapter8/8.33-grep.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.34
|
||||
# ============
|
||||
echo "Building bash"
|
||||
su -c "bash $SCRIPT/chapter8/8.34-bash.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.34-bash.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue