it's Reno
[unix-history] / usr / src / sys / conf / newvers.sh
index 3ec51bc..fa13049 100644 (file)
@@ -1,7 +1,18 @@
-#sccsid        newvers.sh      1.1     84/08/28
-if [ ! -r version ]; then echo 0 > version; fi
+#!/bin/sh -
+#
+# Copyright (c) 1980, 1986 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
+#
+#      @(#)newvers.sh  7.3 (Berkeley) %G%
+#
+if [ ! -r version ]
+then
+       echo 0 > version
+fi
 touch version
 touch version
-awk '  {       version = $1 + 1; }\
-END    {       printf "char version[] = \"4.2 BSD UNIX #%d: ", version > "vers.c";\
-               printf "%d\n", version > "version"; }' < version
-echo `date`'\n";' >> vers.c
+v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date`
+( echo "char sccs[] = \"@(#)4.3 BSD Reno #${v}: ${t} (${u}@${h}:${d})\\n\";" ;
+  echo "char version[] = \"4.3 BSD Reno UNIX #${v}: ${t}\\n    ${u}@${h}:${d}\\n\";"
+) > vers.c
+echo `expr ${v} + 1` > version