All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Make mrproper skip private repo directories in 2.4
@ 2003-10-10 13:21 Art Haas
  0 siblings, 0 replies; only message in thread
From: Art Haas @ 2003-10-10 13:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: Marcelo Tosatti

Hi.

The following patch changes 'make mrproper' to skip the BitKeeper, CVS,
and subversion directories when that command is removing files. A
similar patch is in the 2.6 makefile. The 'mrproper' command removes
0-byte sized files, but removing these files from the repository
private directories can mess things up.

Art Haas

Index: Makefile
===================================================================
--- Makefile	(revision 4144)
+++ Makefile	(working copy)
@@ -455,7 +455,7 @@
 	$(MAKE) -C Documentation/DocBook clean
 
 mrproper: clean archmrproper
-	find . \( -size 0 -o -name .depend \) -type f -print | xargs rm -f
+	find . \( -name SCCS -o -name .svn -o -name BitKeeper -o -name CVS \) -prune -o \( -size 0 -o -name .depend \) -type f -print | xargs rm -f
 	rm -f $(MRPROPER_FILES)
 	rm -rf $(MRPROPER_DIRS)
 	$(MAKE) -C Documentation/DocBook mrproper
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-10 13:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-10 13:21 [PATCH] Make mrproper skip private repo directories in 2.4 Art Haas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.