]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
use customize/version.sh to customize .version file
authorMarkham <markham001@gmx.de>
Thu, 17 Dec 2015 13:35:39 +0000 (14:35 +0100)
committerMarkham <markham001@gmx.de>
Thu, 17 Dec 2015 13:35:39 +0000 (14:35 +0100)
make/neutrino.mk

index ff30397d7659edf1e68add7ce3c7bc731e72e0a4..f588091d17b906ce4094e80a3f7154f0706702a0 100755 (executable)
@@ -110,6 +110,13 @@ $(NEUTRINO_OBJDIR)/config-kronos.status: $(D)/neutrino-hd-libs
                        --enable-giflib
 
 $(TARGETPREFIX)/.version: $(TARGETPREFIX)/bin/neutrino
+       if [ -e $(BASE_DIR)/customize/version.sh ]; then \
+               $(MAKE) $(TARGETPREFIX)/.version2; \
+       else \
+               $(MAKE) $(TARGETPREFIX)/.version1; \
+       fi
+
+$(TARGETPREFIX)/.version1:
        echo "version=0214`date +%Y%m%d%H%M`"                                                                                                                    > $@
        echo "creator=`id -un` (wittinobi's BS GIT Build: `cd $(BASE_DIR) && git log | grep "^commit" | wc -l`)"                                                >> $@
        echo "docs=http://wiki.neutrino-hd.de"                                                                                                                  >> $@
@@ -118,6 +125,9 @@ $(TARGETPREFIX)/.version: $(TARGETPREFIX)/bin/neutrino
        echo "forum=http://www.dbox2world.net"                                                                                                                  >> $@
        echo "builddate=`cd $(SOURCE_DIR)/neutrino-hd && git log | grep "^commit" | wc -l` vom `date --reference=$(SOURCE_DIR)/neutrino-hd/.git`"               >> $@
 
+$(TARGETPREFIX)/.version2: $(BASE_DIR)/customize/version.sh
+       $(BASE_DIR)/customize/version.sh
+
 $(D)/neutrino-hd-libs:
        $(MAKE) $(D)/libsigc $(D)/libmad $(D)/libid3tag $(D)/giflib $(D)/openssl $(D)/libcurl $(D)/freetype $(D)/libjpeg $(D)/libiconv $(D)/dvbsi $(D)/libflac $(D)/ffmpeg $(D)/libbluray $(D)/libvorbis $(D)/openthreads $(D)/luaposix $(D)/luacurl $(D)/lua-socket
        touch $@