pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk extract OPSYS and OS_VERSION from pkgsrc and u...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7e3822eebf78
branches:  trunk
changeset: 467738:7e3822eebf78
user:      grant <grant%pkgsrc.org@localhost>
date:      Thu Feb 05 23:57:54 2004 +0000

description:
extract OPSYS and OS_VERSION from pkgsrc and use them in the report
email subject.

diffstat:

 mk/bulk/build |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r 7cb49f5b503f -r 7e3822eebf78 mk/bulk/build
--- a/mk/bulk/build     Thu Feb 05 23:53:16 2004 +0000
+++ b/mk/bulk/build     Thu Feb 05 23:57:54 2004 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: build,v 1.34 2004/01/27 16:11:47 agc Exp $
+# $NetBSD: build,v 1.35 2004/02/05 23:57:54 grant Exp $
 
 #
 # Copyright (c) 1999, 2000 Hubert Feyrer <hubertf%netbsd.org@localhost>
@@ -116,6 +116,8 @@
        SED=`${BMAKE} show-var VARNAME=SED` || fail=yes
        MAIL_CMD=`${BMAKE} show-var VARNAME=MAIL_CMD` || fail=yes
        MACHINE_ARCH=`${BMAKE} show-var VARNAME=MACHINE_ARCH` || fail=yes
+       OPSYS=`${BMAKE} show-var VARNAME=OPSYS` || fail=yes
+       OS_VERSION=`${BMAKE} show-var VARNAME=OS_VERSION` || fail=yes
 else
        echo "The pkgtools/pkglint directory does not exist.  Please update"
        echo "your pkgsrc tree in ${USR_PKGSRC}"
@@ -149,7 +151,10 @@
        -z "$AWK" -o \
        -z "$GREP" -o \
        -z "$SED" -o \
-       -z "$MAIL_CMD" \
+       -z "$MAIL_CMD" -o \
+       -z "$MACHINE_ARCH" -o \
+       -z "$OPSYS" -o \
+       -z "$OS_VERSION" \
        ]; then
        echo "ERROR:  build failed to extract certain key variables."
        echo "        please examine the above list and correct the"
@@ -242,7 +247,7 @@
 
 # Perl was wiped, reinstall it!
 ( cd lang/perl5 && ${BMAKE} bulk-install )
-perl mk/bulk/post-build | ${MAIL_CMD} -s "pkgsrc/${MACHINE_ARCH} bulk build results `date +%Y-%m-%d`" $ADMIN
+perl mk/bulk/post-build | ${MAIL_CMD} -s "pkgsrc ${OPSYS} ${OS_VERSION}/${MACHINE_ARCH} bulk build results `date +%Y-%m-%d`" $ADMIN
 
 # Done!
 echo ""



Home | Main Index | Thread Index | Old Index