diff options
author | martti <martti> | 2001-12-04 12:34:37 +0000 |
---|---|---|
committer | martti <martti> | 2001-12-04 12:34:37 +0000 |
commit | a97930c5bc568d9a402a98d79e3bed2aaa5ddba7 (patch) | |
tree | 7857a72d5441cb3e063a499b91574e5a18313bd6 /sysutils | |
parent | b1291a482a312ae0125472fae27f5a5f72ebf458 (diff) | |
download | pkgsrc-a97930c5bc568d9a402a98d79e3bed2aaa5ddba7.tar.gz |
Set environment variables in one place before executing "make distribution".
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/etcupdate/Makefile | 4 | ||||
-rwxr-xr-x | sysutils/etcupdate/files/etcupdate | 18 |
2 files changed, 13 insertions, 9 deletions
diff --git a/sysutils/etcupdate/Makefile b/sysutils/etcupdate/Makefile index 80b36b2c27f..6f1a9866b16 100644 --- a/sysutils/etcupdate/Makefile +++ b/sysutils/etcupdate/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.7 2001/12/01 11:42:09 martti Exp $ +# $NetBSD: Makefile,v 1.8 2001/12/04 12:34:37 martti Exp $ -DISTNAME= etcupdate-20011201 +DISTNAME= etcupdate-20011204 CATEGORIES= sysutils MASTER_SITES= # empty DISTFILES= # empty diff --git a/sysutils/etcupdate/files/etcupdate b/sysutils/etcupdate/files/etcupdate index b9b2eac4019..63385de63a3 100755 --- a/sysutils/etcupdate/files/etcupdate +++ b/sysutils/etcupdate/files/etcupdate @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: etcupdate,v 1.8 2001/12/01 11:42:09 martti Exp $ +# $NetBSD: etcupdate,v 1.9 2001/12/04 12:34:38 martti Exp $ # # Copyright (c) 2001 The NetBSD Foundation, Inc. # All rights reserved. @@ -357,17 +357,21 @@ if [ -z "${CONTINUE}" ]; then echo "*** ERROR: Unable to find ${SRCDIR}/Makefile" exit 1 fi + # Set the environment for make + MAKE_ENV=" \ + DESTDIR=${TEMPROOT} \ + MAKE=make \ + MTREE=mtree \ + INSTALL_DONE=1 \ + NO_SENDMAIL=1" echo "*** Populating ${TEMPROOT} from ${SRCDIR}" cd ${SRCDIR} if [ -z "${VERBOSE}" ]; then - make DESTDIR="${TEMPROOT}" MTREE="mtree" \ - INSTALL_DONE=1 NO_SENDMAIL=1 \ - distribution > /dev/null + eval ${MAKE_ENV} make distribution > /dev/null else - make DESTDIR="${TEMPROOT}" MTREE="mtree" \ - INSTALL_DONE=1 NO_SENDMAIL=1 \ - distribution + eval ${MAKE_ENV} make distribution fi + [ $? -ne 0 ] && exit 1 elif [ ! -f "${TEMPROOT}/dev/MAKEDEV" ]; then echo "" echo "*** WARNING: ${TEMPROOT}/dev/MAKEDEV not found" |