diff options
Diffstat (limited to 'genvers.sh')
-rwxr-xr-x | genvers.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/genvers.sh b/genvers.sh new file mode 100755 index 0000000..3da91d7 --- /dev/null +++ b/genvers.sh | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | MAJOR=0 | ||
4 | MINOR=1 | ||
5 | BUILD=`date +%s` | ||
6 | REVISION=`svnversion | sed s/:// | sed s/M//` | ||
7 | REALREVISION=`svnversion` | ||
8 | cat src/VersionInfo.cs.template | sed s/@@VERSION/"$MAJOR.$MINOR, Build $BUILD, Revision $REALREVISION"/g >src/VersionInfo.cs | ||
9 | echo -n $MAJOR.$MINOR.*.$REVISION >VERSION | ||