summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorjoerg <joerg>2009-06-15 17:02:14 +0000
committerjoerg <joerg>2009-06-15 17:02:14 +0000
commit1f85e0477670fa9477eca56dbcaaf24339143456 (patch)
tree7f82812b35c166e068cef0ca4842863442e80d7f /bootstrap
parentcf7872284e3b14c3deb142127fe23ac836423c6b (diff)
downloadpkgsrc-1f85e0477670fa9477eca56dbcaaf24339143456.tar.gz
Bail out before doing anything if PKG_PATH is set.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index a75c920c99f..b43d50d1828 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.146 2009/05/29 15:58:37 rillig Exp $
+# $NetBSD: bootstrap,v 1.147 2009/06/15 17:02:14 joerg Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -341,6 +341,11 @@ if [ "$dash_echo_test" = "@" ]; then
exit 1;
fi
+if [ -n "$PKG_PATH" ]; then
+ echo "ERROR: Please unset PKG_PATH before running bootstrap." 1>&2
+ exit 1;
+fi
+
build_start=`date`
echo_msg "bootstrap command: $0 $@"
echo_msg "bootstrap started: $build_start"