From c5816067f46c5fec0c5b367eb5c8a0a965e1bb0f Mon Sep 17 00:00:00 2001 From: grant Date: Mon, 28 Jun 2004 12:09:09 +0000 Subject: [PATCH] allow --ignore-user-check to pass through to the bootstrap script, too. useful for unprivileged build testing. --- bootstrap/mkbinarykit | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bootstrap/mkbinarykit b/bootstrap/mkbinarykit index 8f72b7439dc6..e097dca2c7fe 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"