openclonk/tools/get_hg_revision.sh

7 lines
118 B
Bash

#!/bin/sh
cd `dirname $0`
echo "#ifndef OC_HG_REVISION"
echo "#define OC_HG_REVISION \"`hg id --id`\""
echo "#endif"