pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/bootstrap Allow the user to type --prefix=foo instead ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c5d479a36507
branches:  trunk
changeset: 493751:c5d479a36507
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat May 14 02:12:48 2005 +0000

description:
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:

 bootstrap/bootstrap |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r c54f1a367dc5 -r c5d479a36507 bootstrap/bootstrap
--- a/bootstrap/bootstrap       Sat May 14 02:03:00 2005 +0000
+++ b/bootstrap/bootstrap       Sat May 14 02:12:48 2005 +0000
@@ -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 @@
 
 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 ;;



Home | Main Index | Thread Index | Old Index