aboutsummaryrefslogtreecommitdiff
blob: c452fc46352a44a293848844cb08f9d93a89d592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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