aboutsummaryrefslogtreecommitdiff
path: root/main/Makefile.am
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-11-19 11:15:19 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-11-19 11:17:02 +0100
commit7a81c7d2707f237d6aee01a945028e63baf5662c (patch)
tree322c76bb2d34d76bca5f5427862f43b5ac3b4b05 /main/Makefile.am
parent504f09e94e5aed4698944aea372de4503fdaac69 (diff)
downloadenigma2-7a81c7d2707f237d6aee01a945028e63baf5662c.tar.gz
enigma2-7a81c7d2707f237d6aee01a945028e63baf5662c.zip
main/Makefile.am: fix code to generate version.h code is now als able to handle git trees (now we generate new defines ENIGMA2_LAST_CHANGE_DATA and ENIGMA2_BRANCH (the last only for git)
Diffstat (limited to 'main/Makefile.am')
-rw-r--r--main/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/Makefile.am b/main/Makefile.am
index a37289ae..7c6c520f 100644
--- a/main/Makefile.am
+++ b/main/Makefile.am
@@ -27,7 +27,12 @@ entries: .svn/entries
version.h: entries
> version.h
- if [ -d .svn ]; then echo "#define ENIGMA2_CHECKOUT_TAG \"D`svn info | grep 'Last Changed Date:' | sed -e 's/[^:]*: \(....\)-\(..\)-\(..\) \(..\):\(..\):\(..\).*+.*$$/\1.\2.\3.\4.\5.\6/'`\"" >> version.h; fi
+ @if [ -d .svn ]; then \
+ echo "#define ENIGMA2_LAST_CHANGE_DATE \"`LANG="en" svn info | grep 'Last Changed Date:' | cut -d' ' -f4`\"" >> version.h; \
+ elif [ -d ../.git ]; then \
+ echo "#define ENIGMA2_LAST_CHANGE_DATE \"`LANG="en" git log --max-count=1 --date=short | grep 'Date:' | cut -d' ' -f4`\"" >> version.h; \
+ echo "#define ENIGMA2_BRANCH \"`LANG="en" git branch | grep '* ' | cut -d' ' -f2`\"" >> version.h; \
+ fi;
enigma2_LDADD_WHOLE = \
$(top_builddir)/lib/actions/libenigma_actions.a \