Skip to contentSkip to conversation

Ignore .svn in Makefile

PATCH In review Stefan Weil 3 participants 3 messages Apr 22, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Ignore .svn in Makefile

Hi,

this small patch adds .svn to the ignore list for the tar archive target. I left CVS on the ignore list, too.

Would a change from gzip to bzip2 or lzma make sense to get a better compression?

Stefan

Makefile +1 -1
Index: Makefile
===================================================================
@@ -257,7 +257,7 @@
 tar:
 	rm -rf /tmp/$(FILE)
 	cp -r . /tmp/$(FILE)
-	cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS
+	cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .svn
 	rm -rf /tmp/$(FILE)
 
 # generate a binary distribution
#1 lore raw
Quoted 2 lines · Stefan Weil

this small patch adds .svn to the ignore list for the tar archive target. I left CVS on the ignore list, too.

should stick .git in there too while you're at it :) -mike

#2 lore raw
In reply to Stefan Weil
Quoted 2 lines · Stefan Weil

this small patch adds .svn to the ignore list for the tar archive target. I left CVS on the ignore list, too.

Would it be okay to ignore .git, too? There are quite a few Git repositories, for which this might be useful.

Signature · 1 line
Stuart Brady