(minor) don't ignore dirty-ness when generating version number

This commit is contained in:
Sitaram Chamarty 2011-07-29 14:12:56 +05:30
parent 973157d777
commit 49f5361799

View file

@ -70,7 +70,7 @@ perl -lpi -e "s(^GL_PACKAGE_CONF=.*)(GL_PACKAGE_CONF=$gl_conf_dir)" $buildroot$g
# record which version is being sent across; we assume it's HEAD
if git rev-parse --is-inside-work-tree >/dev/null 2>&1
then
git describe --tags --long HEAD 2>/dev/null > conf/VERSION || die "git describe failed -- this should not happen!"
git describe --tags --long --dirty=-dt 2>/dev/null > conf/VERSION || die "git describe failed -- this should not happen!"
else
[ -f conf/VERSION ] || echo '(unknown)' > conf/VERSION
fi