pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk Only export MAKECONF if it is not null, <bsd.o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d7ef9cabaf3e
branches:  trunk
changeset: 502549:d7ef9cabaf3e
user:      seb <seb%pkgsrc.org@localhost>
date:      Sun Nov 06 10:32:58 2005 +0000

description:
Only export MAKECONF if it is not null, <bsd.own.mk> does not really like
an empty MAKECONF...

$ echo ".include <bsd.own.mk>" > Makefile
$ env MAKECONF= make
make: "/usr/share/mk/" line 1: Need an operator
make: "/usr/share/mk/" line 2: Need an operator
...

diffstat:

 mk/bulk/post-build-conf |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r f86a1c319004 -r d7ef9cabaf3e mk/bulk/post-build-conf
--- a/mk/bulk/post-build-conf   Sun Nov 06 10:27:57 2005 +0000
+++ b/mk/bulk/post-build-conf   Sun Nov 06 10:32:58 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: post-build-conf,v 1.1 2005/11/05 23:22:05 rillig Exp $
+# $NetBSD: post-build-conf,v 1.2 2005/11/06 10:32:58 seb Exp $
 #
 
 # This file is included after the build.conf file by the "build" and
@@ -44,10 +44,11 @@
 
 # usage: export_config_vars
 export_config_vars() {
-       export osrev arch BULK_BUILD_CONF USR_PKGSRC MAKECONF
+       export osrev arch BULK_BUILD_CONF USR_PKGSRC
        export CVS_USER CVS_FLAGS
        export PRUNEDISTFILES ftp_proxy http_proxy
        export PKGLIST NICE_LEVEL ADMIN ADMINSIG
        export UPDATE_VULNERABILITY_LIST PRUNEPACKAGES MKSUMS SIGN_AS
        export RSYNC_DST RSYNC_OPTS FTPHOST FTP
+       if [ -n "$MAKECONF" ]; then export MAKECONF; fi 
 }



Home | Main Index | Thread Index | Old Index