blob: dc0ac27bf20daac7acb483e4f36362d86fdb7181 (
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
|
#!/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
ftp "http://distfiles.gentoo.org/distfiles/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
|