OpenSimMirror/ogs/genvers.sh

10 lines
303 B
Bash
Raw Normal View History

2007-03-14 03:32:02 +00:00
#!/bin/bash
MAJOR=0
MINOR=1
BUILD=`date +%s`
REVISION=`svnversion . | sed s/:// | sed s/M//`
REALREVISION=`svnversion`
cat common/src/VersionInfo.cs.template | sed s/@@VERSION/"$MAJOR.$MINOR, Build $BUILD, Revision $REALREVISION"/g >common/src/VersionInfo.cs
echo -n $MAJOR.$MINOR.*.$REVISION >VERSION