sys => kern
[unix-history] / usr / src / sys / conf / newvers.sh
CommitLineData
b1078c35
KM
1#!/bin/sh -
2#
0880b18e 3# Copyright (c) 1980, 1986 Regents of the University of California.
b1078c35
KM
4# All rights reserved. The Berkeley software License Agreement
5# specifies the terms and conditions for redistribution.
6#
377e9083 7# @(#)newvers.sh 7.2 (Berkeley) %G%
b1078c35 8#
10db8404
JB
9if [ ! -r version ]
10then
377e9083 11 echo 0 > version
10db8404 12fi
dd663e8d 13touch version
10db8404 14v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date`
377e9083
KM
15( echo "char sccs[] = \"@(#)4.3 BSD #${v}: ${t} (${u}@${h}:${d})\\n\";" ;
16 echo "char version[] = \"4.3 BSD UNIX #${v}: ${t}\\n ${u}@${h}:${d}\\n\";"
10db8404 17) > vers.c
377e9083 18echo `expr ${v} + 1` > version