diff options
author | rillig <rillig> | 2005-05-14 02:12:48 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-05-14 02:12:48 +0000 |
commit | bb0fb0adca912c1b011cb7cd0777f90ead3b9725 (patch) | |
tree | fc14568db68e5862fd75326d85007004f3fd562f /bootstrap | |
parent | 674d752bb5d1180e28d9a7bd8e74569cca99fbda (diff) | |
download | pkgsrc-bb0fb0adca912c1b011cb7cd0777f90ead3b9725.tar.gz |
Allow the user to type --prefix=foo instead of requiring a whitespace
between the --prefix and the directory. This makes life easier for users
that often run GNU ./configure scripts manually.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index f925b1bbabd..f989c101c0e 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.36 2005/05/07 22:19:16 wiz Exp $ +# $NetBSD: bootstrap,v 1.37 2005/05/14 02:12:48 rillig Exp $ # # # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. @@ -231,10 +231,15 @@ echo_msg "bootstrap started: $build_start" while [ $# -gt 0 ]; do case $1 in + --workdir=*) wrkdir=`echo x"$1" | sed 's,^[^=]*=,,'` ;; --workdir) wrkdir="$2"; shift ;; + --prefix=*) prefix=`echo x"$1" | sed 's,^[^=]*=,,'`; + sysconfdir=${prefix}/etc ;; --prefix) prefix="$2"; shift; sysconfdir=${prefix}/etc ;; + --pkgdbdir=*) pkgdbdir=`echo x"$1" | sed 's,^[^=]*=,,'` ;; --pkgdbdir) pkgdbdir="$2"; shift ;; + --sysconfdir=*) sysconfdir=`echo x"$1" | sed 's,^[^=]*=,,'` ;; --sysconfdir) sysconfdir="$2"; shift ;; --ignore-case-check) ignorecasecheck=yes ;; --ignore-user-check) ignoreusercheck=yes ;; |