diff options
author | jschauma <jschauma@pkgsrc.org> | 2004-03-22 21:54:48 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2004-03-22 21:54:48 +0000 |
commit | e114a3e62bf3a649f0f2ec16f980c363d2142850 (patch) | |
tree | e2a57c11119c055f9fb5734567c7d4c61c0becd3 /mk/bulk | |
parent | ec6193ca9d373c1372646456ea7fda60cf56b76d (diff) | |
download | pkgsrc-e114a3e62bf3a649f0f2ec16f980c363d2142850.tar.gz |
If BULK_BUILD_CONF points to an absolute path, don't try to use it
with a leading "./".
Diffstat (limited to 'mk/bulk')
-rw-r--r-- | mk/bulk/post-build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/bulk/post-build b/mk/bulk/post-build index cab7fa85fc5..9887cb2c7aa 100644 --- a/mk/bulk/post-build +++ b/mk/bulk/post-build @@ -1,5 +1,5 @@ #!/usr/pkg/bin/perl -# $NetBSD: post-build,v 1.39 2004/03/18 14:27:20 grant Exp $ +# $NetBSD: post-build,v 1.40 2004/03/22 21:54:48 jschauma Exp $ # # Collect stuff after a pkg bulk build # @@ -22,7 +22,11 @@ sub getconf { local($var)=@_; local($val); - chomp($val=`. ./$BULK_BUILD_CONF ; echo \$$var`); + if ($BULK_BUILD_CONF =~ /^\//) { + chomp($val=`. $BULK_BUILD_CONF ; echo \$$var`); + } else { + chomp($val=`. ./$BULK_BUILD_CONF ; echo \$$var`); + } eval "\$$var=\"$val\";"; } |