xref: /original-bsd/sys/conf/newvers.sh (revision 506c9b6a)
1#!/bin/sh -
2#
3# Copyright (c) 1984, 1986, 1990 The Regents of the University of California.
4# All rights reserved.
5#
6# %sccs.include.redist.sh%
7#
8#	@(#)newvers.sh	7.4 (Berkeley) 12/07/90
9#
10
11if [ ! -r version ]
12then
13	echo 0 > version
14fi
15
16touch version
17v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date`
18( echo "char sccs[] = \"@(#)4.3 BSD Reno #${v}: ${t} (${u}@${h}:${d})\\n\";" ;
19  echo "char version[] = \"4.3 BSD Reno UNIX #${v}: ${t}\\n    ${u}@${h}:${d}\\n\";"
20) > vers.c
21echo `expr ${v} + 1` > version
22