aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/genvers.sh
blob: 7b2685546fed982e3a593b3f472e70a37cc68f5e (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

MAJOR=0
MINOR=1
BUILD=`date +%s`
REVISION=`svnversion . | sed s/:// | sed s/M//`
REALREVISION=`svnversion`
cat src/VersionInfo.cs.template | sed s/@@VERSION/"$MAJOR.$MINOR, Build $BUILD, Revision $REALREVISION"/g >src/VersionInfo.cs
echo -n $MAJOR.$MINOR.*.$REVISION >VERSION