main/Makefile.am: don't pass --dirty to Git to support older versions
[enigma2.git] / main / Makefile.am
index 78fcc6cdc6e664663edf3bcb4c4724a63c62e8f7..0ed4d7176f7f43d3d20306209dbeaf00f1a87dfe 100644 (file)
@@ -16,7 +16,7 @@ enigma2_SOURCES = \
        xmlgenerator.cpp \
        xmlgenerator.h \
        version_info.cpp \
-       version_info.h
+       version_info.h \
        version.h
 
 EXTRA_DIST = \
@@ -60,9 +60,9 @@ if HAVE_FAKE_GIT_DIR
 ENIGMA2_DATE = `cat $(GIT_DIR)/last_commit_info | grep 'Date:' | cut -d' ' -f4`
 ENIGMA2_BRANCH = `cat $(GIT_DIR)/branch`
 else
-ENIGMA2_DATE = `$(GIT) log --no-color -n 1 --format=format:%cd --date=short`
+ENIGMA2_DATE = `$(GIT) log --no-color -n 1 --pretty=format:%cd --date=short`
 ENIGMA2_BRANCH = `$(GIT) branch --no-color 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
-ENIGMA2_REV = `$(GIT) describe --abbrev=7 --always --dirty --long --tags`
+ENIGMA2_REV = `$(GIT) describe --abbrev=7 --always --long --tags`
 endif
 
 BUILT_SOURCES = version-intermediate.h