mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 22:42:28 +08:00
38 lines
597 B
Bash
38 lines
597 B
Bash
#!/bin/bash
|
|
|
|
source versions.sh
|
|
|
|
GLSOURCES="${LFS}/sources"
|
|
|
|
if [ "`whoami`" != "lfs" ]; then
|
|
myfail "Must run this script as lfs user"
|
|
fi
|
|
|
|
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
|
|
|
tar -zxf ${bash_tarball}
|
|
|
|
cd bash-${bash_version}
|
|
|
|
./configure --prefix=/usr \
|
|
--build=$(sh support/config.guess) \
|
|
--host=${LFS_TGT} \
|
|
--without-bash-malloc \
|
|
bash_cv_strtold_broken=no
|
|
|
|
make
|
|
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed building bash"
|
|
fi
|
|
|
|
make DESTDIR=${LFS} install
|
|
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed installing bash"
|
|
fi
|
|
|
|
ln -s bash ${LFS}/bin/sh
|
|
|
|
|