Commit | Line | Data |
---|---|---|
f644bb55 DF |
1 | #!/bin/sh - |
2 | # | |
526e3898 | 3 | # Copyright (c) 1983 The Regents of the University of California. |
e2071415 | 4 | # All rights reserved. |
f644bb55 | 5 | # |
e2071415 | 6 | # Redistribution and use in source and binary forms are permitted |
526e3898 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. | |
e2071415 | 17 | # |
097a4f65 | 18 | # @(#)newvers.sh 5.4 (Berkeley) %G% |
f644bb55 | 19 | # |
55f2f310 SL |
20 | if [ ! -r version ]; then echo 0 > version; fi |
21 | touch version | |
22 | awk ' { version = $1 + 1; }\ | |
097a4f65 | 23 | END { printf "char version[] = \"Version 5.%d ", version > "vers.c";\ |
55f2f310 SL |
24 | printf "%d\n", version > "version"; }' < version |
25 | echo `date`'";' >> vers.c |