[mythtv] [PATCH 2/4] DEB: Really exclude .git

Philipp Matthias Hahn pmhahn+mythtv at pmhahn.de
Sat Sep 30 14:46:11 UTC 2017


6cfdad4d changed `tar` to use `--exclude-vcs`, which for me (in version
1.29 as used by Debian Stretch) does not work: The generated
.orig.tar.gz still contains
	Mythbuntu/.git/
	mythplugins/mythweb/.git/
	mythtv/.git/

`tar` seams to processes options in order, so the options must be moved
before the  path names.
---
 deb/debian/mythtv.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/deb/debian/mythtv.make b/deb/debian/mythtv.make
index c1bfe8f..2f03f20 100644
--- a/deb/debian/mythtv.make
+++ b/deb/debian/mythtv.make
@@ -49,7 +49,7 @@ TARFILE:=mythtv_$(GIT_RELEASE)$(DELIMITTER)$(SUFFIX).orig.tar.gz
 
 build-tarball:
 	#build the tarball
-	tar czf $(CURDIR)/../$(TARFILE) * --exclude-vcs --exclude .pc --exclude-tag-all mythtv.make
+	tar czf $(CURDIR)/../$(TARFILE) --exclude-vcs --exclude .pc --exclude-tag-all mythtv.make *
 
 get-git-source:
 	#checkout mythtv/mythplugins
-- 
2.14.2



More information about the mythtv-dev mailing list