Makefile added.

This commit is contained in:
Andreas Neue
2016-01-20 20:55:30 +01:00
parent 9f5d94b24d
commit 6b0e3a1dbf
3 changed files with 50 additions and 10 deletions
Executable
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
VERSIONGO="version/version.go"
echo "package version" >$VERSIONGO
echo "" >>$VERSIONGO
echo "const (" >>$VERSIONGO
echo -n " FlokatiVersion = \"" >>$VERSIONGO
echo -n `git rev-parse --abbrev-ref HEAD` >>$VERSIONGO
echo "\"" >>$VERSIONGO
echo -n " FlokatiBuild = \"" >>$VERSIONGO
echo -n `git rev-list HEAD --count` >>$VERSIONGO
echo "\"" >>$VERSIONGO
echo ")" >>$VERSIONGO