summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2013-10-13 14:25:37 +0200
committerJochen Dolze <vdr@dolze.de>2013-10-13 14:25:37 +0200
commitde1511e90ad13cea2b66bf29ec7c8261eb3f76b6 (patch)
tree0d33a646d14169b91dffe6c97577a67d502485ca
parent44e5c4dab5eb384b87da3b75d7619d4100246f68 (diff)
downloadvdr-plugin-markad-de1511e90ad13cea2b66bf29ec7c8261eb3f76b6.tar.gz
vdr-plugin-markad-de1511e90ad13cea2b66bf29ec7c8261eb3f76b6.tar.bz2
Fixed error in Makefile
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d89b038..52812c1 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
DIRS = command plugin
-$(shell GITVERSION=`git rev-parse --short HEAD`; if [ -n $GITVERSION ]; then sed "s/\";/ ($$GITVERSION)\";/" version.dist > version.h; else cp version.dist version.h; fi)
+$(shell GITVERSION=`git rev-parse --short HEAD 2> /dev/null`; if [ "$$GITVERSION" ]; then sed "s/\";/ ($$GITVERSION)\";/" version.dist > version.h; else cp version.dist version.h; fi)
VERSION = $(shell grep 'static const char \*VERSION *=' version.h | awk '{ print $$6 }' | sed -e 's/[";]//g')
TMPDIR = /tmp
@@ -34,7 +34,7 @@ dist:
@cp -a command/*.cpp command/*.h command/*.1 command/Makefile $(TMPDIR)/$(ARCHIVE)/command
@cp -u command/logos/*.pgm $(TMPDIR)/$(ARCHIVE)/command/logos
@cp -a command/po/*.po $(TMPDIR)/$(ARCHIVE)/command/po
- @cp -a *.h COPYING HISTORY README INSTALL Makefile $(TMPDIR)/$(ARCHIVE)
+ @cp -a *.dist *.h COPYING HISTORY README INSTALL Makefile $(TMPDIR)/$(ARCHIVE)
@tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE)
@-rm -rf $(TMPDIR)/$(ARCHIVE)
@echo Distribution package created as $(PACKAGE).tgz