mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 22:42:28 +08:00
31 lines
542 B
Bash
31 lines
542 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
|
|
|