lfs-buildscripts/CH8Build/CH08.34-bash.sh
2024-10-08 12:43:22 -07:00

40 lines
614 B
Bash

#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d bash-${bash_version} ] && rm -rf bash-${bash_version}
tar -zxf ${bash_tarball}
cd bash-${bash_version}
./configure --prefix=/usr \
--without-bash-malloc \
--with-installed-readline \
bash_cv_strtold_broken=no \
--docdir=/usr/share/doc/bash-${bash_version}
make
if [ $? -ne 0 ]; then
myfail "Failed building bash"
fi
make install
if [ $? -ne 0 ]; then
myfail "Failed installing bash"
fi
popd
# cleanup
pushd $GLSOURCES
rm -rf bash-${bash_version}
popd