diff options
author | jschauma <jschauma> | 2004-03-22 21:54:48 +0000 |
---|---|---|
committer | jschauma <jschauma> | 2004-03-22 21:54:48 +0000 |
commit | b54178a12b07984a555f15a67aa2c00537624fb4 (patch) | |
tree | e2a57c11119c055f9fb5734567c7d4c61c0becd3 /mk/bulk | |
parent | 03964038784c8c9fa31b0872b239314bc1c5e95b (diff) | |
download | pkgsrc-b54178a12b07984a555f15a67aa2c00537624fb4.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\";"; } |