Remove the sccs[] hack (which has broken twice now) and just make sccs[]

and version[] separate strings. (Other alternative hacks proposed may also
break in the future.) We don't make version a pointer into the sccs string,
because that would require changing programs that kvm_read() it, and break
backward compatability.
This commit is contained in:
cjs 1999-02-02 19:40:47 +00:00
parent 13daba04a1
commit 269cb58003

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: newvers.sh,v 1.27 1997/05/10 15:40:09 lukem Exp $
# $NetBSD: newvers.sh,v 1.28 1999/02/02 19:40:47 cjs Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
# The Regents of the University of California. All rights reserved.
@ -50,8 +50,10 @@ osr=`sh $osrelcmd`
echo "char ostype[] = \"${ost}\";" > vers.c
echo "char osrelease[] = \"${osr}\";" >> vers.c
# note: pad `sccs' with spaces, so its size becomes 8
echo "char sccs[8] = { ' ', ' ', ' ', ' ', '@', '(', '#', ')' };" >> vers.c
echo \
"char sccs[] = \
\"@(#)${ost} ${osr} (${id}) #${v}: ${t}\\n ${u}@${h}:${d}\\n\";" \
>> vers.c
echo \
"char version[] = \
\"${ost} ${osr} (${id}) #${v}: ${t}\\n ${u}@${h}:${d}\\n\";" \