Commit | Line | Data |
---|---|---|
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 | # | |
0880b18e | 7 | # @(#)newvers.sh 7.1 (Berkeley) %G% |
b1078c35 | 8 | # |
10db8404 JB |
9 | if [ ! -r version ] |
10 | then | |
2dcd074c | 11 | /bin/echo 0 > version |
10db8404 | 12 | fi |
dd663e8d | 13 | touch version |
10db8404 | 14 | v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date` |
2dcd074c KM |
15 | ( /bin/echo "char sccs[] = \"@(#)4.3 BSD #${v}: ${t} (${u}@${h}:${d})\\n\";" ; |
16 | /bin/echo "char version[] = \"4.3 BSD UNIX #${v}: ${t}\\n ${u}@${h}:${d}\\n\";" | |
10db8404 | 17 | ) > vers.c |
2dcd074c | 18 | /bin/echo `expr ${v} + 1` > version |