look for /^Version:/ to find the boot block version, rather than using

the "version" file's RCS id (which is useless for branches).
This commit is contained in:
mrg 1999-01-15 00:48:03 +00:00
parent d7a044aeec
commit bb4584ec40
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,9 @@
$NetBSD: version,v 1.8 1998/08/29 06:40:43 mrg Exp $
$NetBSD: version,v 1.9 1999/01/15 00:48:03 mrg Exp $
# The newvers.sh looks for the line below. We use this method
# rather than $3 of the dollar-NetBSD-dollar line above so that
# this version can be on branch-files also.
Version: 1.8
1.1:
1.2: get it to work with V0 bootproms.

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: newvers.sh,v 1.1 1997/06/01 03:39:37 mrg Exp $
# $NetBSD: newvers.sh,v 1.2 1999/01/15 00:48:03 mrg Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
# The Regents of the University of California. All rights reserved.
@ -36,7 +36,7 @@
# @(#)newvers.sh 8.1 (Berkeley) 4/20/94
u=${USER-root} h=`hostname` t=`date`
r=`head -1 $1 | awk ' { print $3 } '`
r=`awk '/^Version:/ { print $2 } ' $1`
echo "char bootprog_name[] = \"NetBSD/sparc ${2}\";" > vers.c
echo "char bootprog_rev[] = \"${r}\";" >> vers.c