#!/bin/sh -e for patch in bash51-0??; do patch -p0 < "$patch" done ./configure \ --prefix=/usr \ --without-bash-malloc \ --disable-nls export MAKEFLAGS="TERMCAP_LIB=/usr/lib/libncursesw.a $MAKEFLAGS" make make DESTDIR="$1" install ln -s bash "$1/usr/bin/sh"