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 | 25e0a7666fb8d94f979ee25cabb2d35563692cec (patch) | |
tree | 7f82812b35c166e068cef0ca4842863442e80d7f /bootstrap | |
parent | c4400d1c2a274af01eae7ac0ee6d365072a8b614 (diff) | |
download | pkgsrc-25e0a7666fb8d94f979ee25cabb2d35563692cec.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" |