summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2004-05-11 02:07:19 +0000
committerschmonz <schmonz@pkgsrc.org>2004-05-11 02:07:19 +0000
commit7ecc421fab3d0443b18daf66cd377112e25d5482 (patch)
treebb10ab2ec9e8d21f6122fedfc6535a127b04f9c5
parent093432ee1126deee3d2e7344c885c3a84af44b53 (diff)
downloadpkgsrc-7ecc421fab3d0443b18daf66cd377112e25d5482.tar.gz
Retire the bootstrap script's --pkgsrcdir argument. Now that we're
part of pkgsrc, we don't need to be told where it is.
-rwxr-xr-xbootstrap/bootstrap6
1 files changed, 2 insertions, 4 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 57b6ca5f2ae..7ca281f2a49 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.17 2004/05/05 14:39:45 tv Exp $
+# $NetBSD: bootstrap,v 1.18 2004/05/11 02:07:19 schmonz Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -40,7 +40,6 @@ BOOTSTRAP_VERSION=20040214
# set defaults for system locations
prefix=/usr/pkg
pkgdbdir=/var/db/pkg
-pkgsrcdir=/usr/pkgsrc
sysconfdir=${prefix}/etc
ignorecasecheck=no
@@ -49,12 +48,12 @@ ignoreusercheck=no
# where the building takes place
wrkdir=work # default: relative to pkgsrc/bootstrap
bootstrapdir=`pwd`
+pkgsrcdir=`dirname $bootstrapdir`
usage="Usage: $0 "'
[ --workdir=<workdir> ]
[ --prefix=<prefix> ]
[ --pkgdbdir=<pkgdbdir> ]
- [ --pkgsrcdir=<pkgsrcdir> ]
[ --sysconfdir=<sysconfdir> ]
[ --ignore-case-check ]
[ --ignore-user-check ]
@@ -369,7 +368,6 @@ while [ $# -gt 0 ]; do
--prefix=*) prefix=`echo $1 | $sedprog -e 's|--prefix=||'`
sysconfdir=${prefix}/etc ;;
--pkgdbdir=*) pkgdbdir=`echo $1 | $sedprog -e 's|--pkgdbdir=||'` ;;
- --pkgsrcdir=*) pkgsrcdir=`echo $1 | $sedprog -e 's|--pkgsrcdir=||'` ;;
--sysconfdir=*) sysconfdir=`echo $1 | $sedprog -e 's|--sysconfdir=||'`;;
--ignore-case-check) ignorecasecheck=yes ;;
--ignore-user-check) ignoreusercheck=yes ;;