diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-11-19 11:15:19 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-11-19 11:16:40 +0100 |
| commit | 9a2525f40543a40fdff44d1dccdc1b55b139291f (patch) | |
| tree | 4d86836dd58a858dd55750385c95612d95744b84 | |
| parent | eaa3a6e58b892b73dad128a0fa80da459cbc6b03 (diff) | |
| download | enigma2-9a2525f40543a40fdff44d1dccdc1b55b139291f.tar.gz enigma2-9a2525f40543a40fdff44d1dccdc1b55b139291f.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)
| -rw-r--r-- | main/Makefile.am | 7 |
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 \ |
