OpenSimMirror/genvers.sh

10 lines
289 B
Bash
Raw Normal View History

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