2024-10-05 12:24:49 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source versions.sh
|
|
|
|
|
|
|
|
GLSOURCES="/sources"
|
|
|
|
|
2024-10-09 03:43:22 +08:00
|
|
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
2024-10-05 12:24:49 +08:00
|
|
|
|
|
|
|
[ -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
|
|
|
|
|
2024-10-08 12:28:55 +08:00
|
|
|
popd
|
|
|
|
|
|
|
|
# cleanup
|
|
|
|
|
|
|
|
pushd $GLSOURCES
|
|
|
|
|
|
|
|
rm -rf bash-${bash_version}
|
|
|
|
|
|
|
|
popd
|