X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=main%2FMakefile.am;h=4f26387e09cbd7f8063e9259acf3b3160f19e679;hp=7c6c520f502cf9eb1c6493206b5f5d142a8bff30;hb=6bf650802dbbe73873f97086249c31814857f635;hpb=7a81c7d2707f237d6aee01a945028e63baf5662c;ds=sidebyside diff --git a/main/Makefile.am b/main/Makefile.am index 7c6c520..4f26387 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 = \