Revision 10832,
395 bytes
checked in by brlewis, 27 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r10831,
which included commits to RCS files with non-trunk default branches.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh - |
---|
2 | PROG=${1-UNKNOWN} |
---|
3 | VERSION=${2-UNKNOWN} |
---|
4 | if [ ! -f .version ]; then |
---|
5 | echo 0 > .version |
---|
6 | fi |
---|
7 | |
---|
8 | RUN="`cat .version`" |
---|
9 | RUN="`expr $RUN + 1`" |
---|
10 | echo $RUN > .version |
---|
11 | |
---|
12 | DATE="`date`" |
---|
13 | |
---|
14 | echo "Version $PROG ${VERSION} ${DATE} (${RUN})"; |
---|
15 | |
---|
16 | rm -f version.c |
---|
17 | cat > version.c << -EoF- |
---|
18 | /* |
---|
19 | * version file for $PROG |
---|
20 | */ |
---|
21 | #include <config.h> |
---|
22 | const char * Version = "$PROG 3-${VERSION} ${DATE} (${RUN})"; |
---|
23 | -EoF- |
---|
Note: See
TracBrowser
for help on using the repository browser.