xref: /original-bsd/sys/conf/newvers.sh (revision 92ab646d)
1#!/bin/sh -
2#
3# Copyright (c) 1980, 1986 Regents of the University of California.
4# All rights reserved.  The Berkeley software License Agreement
5# specifies the terms and conditions for redistribution.
6#
7#	@(#)newvers.sh	7.3 (Berkeley) 07/01/90
8#
9if [ ! -r version ]
10then
11	echo 0 > version
12fi
13touch version
14v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date`
15( echo "char sccs[] = \"@(#)4.3 BSD Reno #${v}: ${t} (${u}@${h}:${d})\\n\";" ;
16  echo "char version[] = \"4.3 BSD Reno UNIX #${v}: ${t}\\n    ${u}@${h}:${d}\\n\";"
17) > vers.c
18echo `expr ${v} + 1` > version
19