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