feat(version): generate version from git tags

This will generate the version based on git tags. So if it is built
directly on a tag it will use the tag name and if it is built off a
commit that isn't a tag it will look like:

    $ curl localhost:7001
    0-267-ga39cf1c
This commit is contained in:
Brandon Philips
2013-08-06 15:34:17 -07:00
parent 0045b3b764
commit a7deba0f90
4 changed files with 10 additions and 2 deletions

8
scripts/release-version Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
VER=$(git describe --tags HEAD)
cat <<EOF
package main
var releaseVersion = "$VER"
EOF