Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/stand/lib Use "make ... echo ${MACHINE}" to ge...



details:   https://anonhg.NetBSD.org/src/rev/77fd5102e498
branches:  trunk
changeset: 467474:77fd5102e498
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu Mar 25 03:56:00 1999 +0000

description:
Use "make ... echo ${MACHINE}" to get the machine name so
that this script is MI.  Just need to find the right place
for it now - suggestions welcome...

diffstat:

 sys/arch/pmax/stand/lib/newvers.sh |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r d0141d5dfa64 -r 77fd5102e498 sys/arch/pmax/stand/lib/newvers.sh
--- a/sys/arch/pmax/stand/lib/newvers.sh        Thu Mar 25 03:54:43 1999 +0000
+++ b/sys/arch/pmax/stand/lib/newvers.sh        Thu Mar 25 03:56:00 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: newvers.sh,v 1.1 1999/03/25 03:52:12 simonb Exp $
+#      $NetBSD: newvers.sh,v 1.2 1999/03/25 03:56:00 simonb Exp $
 #
 # Copyright (c) 1984, 1986, 1990, 1993
 #      The Regents of the University of California.  All rights reserved.
@@ -38,7 +38,10 @@
 u=${USER-root} h=`hostname` t=`date`
 r=`awk '/^Version:/ { print $2 } ' $1`
 
-echo "char bootprog_name[] = \"NetBSD/pmax ${2}\";" > vers.c
+: ${MAKE=make}
+machine=${MACHINE:-`printf 'xxx:\n\techo ${MACHINE}' | $MAKE -s -f-`}
+
+echo "char bootprog_name[] = \"NetBSD/${machine} ${2}\";" > vers.c
 echo "char bootprog_rev[] = \"${r}\";" >> vers.c
 echo "char bootprog_date[] = \"${t}\";" >> vers.c
 echo "char bootprog_maker[] = \"${u}@${h}\";" >> vers.c



Home | Main Index | Thread Index | Old Index