| 1 | #!/bin/sh - |
| 2 | # |
| 3 | # Copyright (c) 1983 Regents of the University of California. |
| 4 | # All rights reserved. |
| 5 | # |
| 6 | # Redistribution and use in source and binary forms are permitted |
| 7 | # provided that this notice is preserved and that due credit is given |
| 8 | # to the University of California at Berkeley. The name of the University |
| 9 | # may not be used to endorse or promote products derived from this |
| 10 | # software without specific prior written permission. This software |
| 11 | # is provided ``as is'' without express or implied warranty. |
| 12 | # |
| 13 | # @(#)newvers.sh 5.2 (Berkeley) %G% |
| 14 | # |
| 15 | if [ ! -r version ]; then echo 0 > version; fi |
| 16 | touch version |
| 17 | awk ' { version = $1 + 1; }\ |
| 18 | END { printf "char version[] = \"Version 4.%d ", version > "vers.c";\ |
| 19 | printf "%d\n", version > "version"; }' < version |
| 20 | echo `date`'";' >> vers.c |