#!/bin/sh VERSIONGO="version.go" echo "package main" >$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