Commit | Line | Data |
---|---|---|
ca67e7b4 | 1 | #!/bin/sh - |
050c8494 | 2 | # |
fd6a6ef3 KB |
3 | # Copyright (c) 1987 Regents of the University of California. |
4 | # All rights reserved. | |
050c8494 | 5 | # |
fd6a6ef3 | 6 | # Redistribution and use in source and binary forms are permitted |
16b6eaa3 KB |
7 | # provided that the above copyright notice and this paragraph are |
8 | # duplicated in all such forms and that any documentation, | |
9 | # advertising materials, and other materials related to such | |
10 | # distribution and use acknowledge that the software was developed | |
11 | # by the University of California, Berkeley. The name of the | |
12 | # University may not be used to endorse or promote products derived | |
13 | # from this software without specific prior written permission. | |
14 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
15 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
16 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
fd6a6ef3 | 17 | # |
ca67e7b4 | 18 | # @(#)newvers.sh 4.5 (Berkeley) 7/9/88 |
fd6a6ef3 | 19 | # |
ca67e7b4 C |
20 | if [ ! -r version ] |
21 | then | |
22 | echo 0 > version | |
23 | fi | |
24 | touch version | |
25 | rm -f version.[oc] | |
26 | v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date` | |
27 | sed -e "s|%VERSION%|#${v}: ${t}|" -e "s|%WHOANDWHERE%|${u}@${h}:${d}|" \ | |
28 | < Version.c >version.c | |
29 | /bin/echo `expr ${v} + 1` > version |