#!/bin/sh # Copyright 2006-2011 Gentoo Foundation; Distributed under the GPL v2 # OBSD bash installer # # FreeBSD and OpenBSD come with some POSIX (?) /bin/sh which doesn't eat # most of the stuff in the bootstrap-prefix script, among which the most # important part: dynamic function calling. So, we need to bootstrap # bash outside the bootstrap script, which is the purpose of this # script. # Slepnoga: bump to 4.1 # OBSD yacc is stub, only patchlewel zero support in this time [ -z "$1" ] && exit -1 cd "$1" mkdir bash-build cd bash-build GENTOO_MIRROR=${GENTOO_MIRROR:="http://distfiles.gentoo.org/distfiles"} ftp "${GENTOO_MIRROR}/bash-4.1.tar.gz" gzip -d bash-4.1.tar.gz tar -xf bash-4.1.tar cd bash-4.1 ./configure --prefix="${1}"/usr --disable-nls make make install