# Exit on error:
set -e

wget http://ftpmirror.gnu.org/bash/bash-4.2.tar.gz
tar xf bash-4.2.tar.gz
cd bash-4.2

./configure \
    --prefix=/usr \
    --bindir=/bin \
    --without-bash-malloc \
    --with-installed-readline

make
make \
    htmldir=/usr/share/doc/bash-4.2 \
    install

cd ..
exit 0
