summaryrefslogtreecommitdiff
path: root/bootstrap/mkbinarykit
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-06-28 12:09:09 +0000
committergrant <grant@pkgsrc.org>2004-06-28 12:09:09 +0000
commit51f47fb401004da708668fa648f3d24a3dedf441 (patch)
tree450e3b11512b2ab80f8de8b1b1379ffec5dd9f63 /bootstrap/mkbinarykit
parentb8007d9e6c3e740c2ad06d34006b7afdbc5d9392 (diff)
downloadpkgsrc-51f47fb401004da708668fa648f3d24a3dedf441.tar.gz
allow --ignore-user-check to pass through to the bootstrap script,
too. useful for unprivileged build testing.
Diffstat (limited to 'bootstrap/mkbinarykit')
-rwxr-xr-xbootstrap/mkbinarykit8
1 files changed, 7 insertions, 1 deletions
diff --git a/bootstrap/mkbinarykit b/bootstrap/mkbinarykit
index 8f72b7439dc..e097dca2c7f 100755
--- a/bootstrap/mkbinarykit
+++ b/bootstrap/mkbinarykit
@@ -1,6 +1,6 @@
#!/bin/sh
-# $NetBSD: mkbinarykit,v 1.8 2004/05/11 02:19:48 schmonz Exp $
+# $NetBSD: mkbinarykit,v 1.9 2004/06/28 12:09:09 grant Exp $
#
# Make a binary bootstrap kit and place it in targetdir (or current
# working directory if not specified). The mk.conf.example file is
@@ -22,6 +22,7 @@ prefix=/usr/pkg
pkgdbdir=/var/db/pkg
mkfile=/etc/mk.conf
ignorecasecheck=no
+ignoreusercheck=no
force=no
build=yes
targetdir=`pwd`
@@ -70,6 +71,7 @@ while [ $# -gt 0 ]; do
--mkconf=*) mkfile=`echo $1 | $sedprog -e 's|--mkconf=||'` ;;
--pkgdbdir=*) pkgdbdir=`echo $1 | $sedprog -e 's|--pkgdbdir=||'` ;;
--ignore-case-check) ignorecasecheck=yes ;;
+ --ignore-user-check) ignoreusercheck=yes ;;
--workdir=*) wrkdir=`echo $1 | $sedprog -e 's|--workdir=||'` ;;
--*) echo "$usage"; exit 1 ;;
esac
@@ -96,6 +98,10 @@ if [ "$build" != "no" ]; then
bootstrap_flags="$bootstrap_flags --ignore-case-check"
fi
+ if [ "$ignoreusercheck" = "yes" ]; then
+ bootstrap_flags="$bootstrap_flags --ignore-user-check"
+ fi
+
echo "Making bootstrap kit with"
echo "prefix = $prefix"
echo "pkgdbdir = $pkgdbdir"