r59 - trunk/vim/debian

Pierre Habouzit madcoder-guest@costa.debian.org
Tue, 15 Mar 2005 11:02:44 +0100


Author: madcoder-guest
Date: 2005-03-15 11:02:43 +0100 (Tue, 15 Mar 2005)
New Revision: 59

Modified:
   trunk/vim/debian/rules
Log:
not very usefull for the final package, but allow to 'debuild' from the svn repo without rm -rf **/.svn

Modified: trunk/vim/debian/rules
===================================================================
--- trunk/vim/debian/rules	2005-03-15 09:35:01 UTC (rev 58)
+++ trunk/vim/debian/rules	2005-03-15 10:02:43 UTC (rev 59)
@@ -156,6 +156,8 @@
 SOURCES+=$(NAME)-$(VERSION)-extra.tar.gz
 SRCDIR=$(NAME)$(subst .,,$(VERSION))
 
+NO_SVN=" ! -path '.svn/' "
+
 make_patch: extract
 	mv $(SRCDIR) $(SRCDIR).new
 	rm -f extract-stamp*
@@ -166,14 +168,14 @@
 
 extract: extract-stamp
 extract-stamp: $(foreach s,$(SOURCES),extract-stamp-$(s))
-	@for f in `find upstream/patches -type f -name '$(VERSION).*' -printf "%P\n" | sort -n` ; do\
+	@for f in `find upstream/patches -type f -name '$(VERSION).*' $(NO_SVN) -printf "%P\n" | sort -n` ; do\
 	  echo "applying upstream patch: $$f" ;\
 	  cat upstream/patches/$$f | patch -s -d$(SRCDIR) -p0 ;\
 	done
 	echo "applying KVim patches";
 	cd vim63; cat ../upstream/kvim/vim2kvim.diff | patch -p1;
 	cd vim63/runtime; uudecode ../../upstream/kvim/runtime/*.uu;
-	@for f in `find debian/patches -type f -printf "%P\n" | sort -n` ; do\
+	@for f in `find debian/patches -type f $(NO_SVN) -printf "%P\n" | sort -n` ; do\
 	  echo "applying debian patch: $$f" ;\
 	  cat debian/patches/$$f | patch -s -d$(SRCDIR) -p1 ;\
 	done