aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-11-19 19:08:47 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-11-19 19:09:24 +0100
commit47632b77b9955576d6b1352f337b2a86bd480695 (patch)
tree049869034102beb5e5f3304d62349a2a7443bc3f /main
parentd4a4a3a2599f70246697482dbdd8cb8fbd4aed99 (diff)
downloadenigma2-47632b77b9955576d6b1352f337b2a86bd480695.tar.gz
enigma2-47632b77b9955576d6b1352f337b2a86bd480695.zip
main/Makefile.am: support to extract version information from (git) tarballs created by our patched bitbake 1.4.2
this needs latest bitbake changes done in our bitbake tree today
Diffstat (limited to 'main')
-rw-r--r--main/Makefile.am9
1 files changed, 7 insertions, 2 deletions
diff --git a/main/Makefile.am b/main/Makefile.am
index 7c6c520f..4f26387e 100644
--- a/main/Makefile.am
+++ b/main/Makefile.am
@@ -30,8 +30,13 @@ version.h: entries
@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; \
+ if [ -f ../.git/last_commit_info ]; then \
+ echo "#define ENIGMA2_LAST_CHANGE_DATE \"`cat ../.git/last_commit_info | grep 'Date:' | cut -d' ' -f4`\"" >> version.h; \
+ echo "#define ENIGMA2_BRANCH \"`cat ../.git/branch`\"" >> version.h; \
+ else \
+ 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; \
fi;
enigma2_LDADD_WHOLE = \