pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/bulk If BULK_BUILD_CONF points to an absolute path,...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b8e3908a7417
branches:  trunk
changeset: 471261:b8e3908a7417
user:      jschauma <jschauma%pkgsrc.org@localhost>
date:      Mon Mar 22 21:54:48 2004 +0000

description:
If BULK_BUILD_CONF points to an absolute path, don't try to use it
with a leading "./".

diffstat:

 mk/bulk/post-build |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 18e074aa4bc3 -r b8e3908a7417 mk/bulk/post-build
--- a/mk/bulk/post-build        Mon Mar 22 20:57:38 2004 +0000
+++ b/mk/bulk/post-build        Mon Mar 22 21:54:48 2004 +0000
@@ -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 @@
        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\";";
 }
 



Home | Main Index | Thread Index | Old Index