#!/bin/sh
branch=`git rev-parse --abbrev-ref HEAD`
if test "$branch" == "master"
then
# replace commit hash with the split commit when we do the actual fork
echo `git describe` > `git rev-parse --show-toplevel`/VERSION
else
echo `git rev-parse --abbrev-ref HEAD` `git rev-parse --short HEAD` > `git rev-parse --show-toplevel`/VERSION
fi
echo "Version=\""`cat VERSION`"\""
