5
if head=$(git rev-parse --verify HEAD 2>/dev/null); then
6
git update-index --refresh --unmerged > /dev/null
9
# on git builds check that the version number above
11
[ "${descr%%-*}" = "v$VERSION" ] || exit 2
13
echo -n '#define ANTISPAM_VERSION "'
15
if git diff-index --name-only HEAD | read dummy ; then
20
echo '#define ANTISPAM_VERSION "'$VERSION'-notgit"'