mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 6.4 - Build bash
This commit is contained in:
parent
fc4249236b
commit
6a3a783ac7
2 changed files with 42 additions and 0 deletions
29
scripts/chapter6/6.4-bash.sh
Normal file
29
scripts/chapter6/6.4-bash.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $LFS/sources
|
||||
tar xf bash-5.1.16.tar.gz
|
||||
cd bash-5.1.16
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--build=$(support/config.guess) \
|
||||
--host=$LFS_TGT \
|
||||
--without-bash-malloc
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make DESTDIR=$LFS install
|
||||
|
||||
ln -sv bash $LFS/bin/sh
|
||||
|
||||
cd $LFS/sources
|
||||
rm -rf bash-5.1.16
|
|
@ -215,3 +215,16 @@ then
|
|||
stop_script "chapter6/6.3-ncurses.sh"
|
||||
fi
|
||||
|
||||
# Chapter 6.4
|
||||
# ===========
|
||||
echo "Building bash"
|
||||
su - lfs -c "bash $PWD/chapter6/6.4-bash.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter6/6.4-bash.sh"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue