diff options
author | joerg <joerg@pkgsrc.org> | 2009-06-15 17:02:14 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-06-15 17:02:14 +0000 |
commit | 679d1aa36630b6ede680e8026b30632f8aa3606c (patch) | |
tree | 7f82812b35c166e068cef0ca4842863442e80d7f /bootstrap | |
parent | 1547043aed3aae0eedf6d67b03619be2145456a1 (diff) | |
download | pkgsrc-679d1aa36630b6ede680e8026b30632f8aa3606c.tar.gz |
Bail out before doing anything if PKG_PATH is set.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 7 |
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" |