#!/bin/sh VERSION=`git describe --abbrev=0` HASH=`git show --format="%h" --no-patch master` echo "#define VERSION \"$VERSION\"" echo "#define HASH \"$HASH\"" echo "#define VERSION_FULL VERSION\"-\"HASH" echo "#define BUILDTIME \"`date -Isec`\""