Skip to contentSkip to conversation

Make mrproper skip private repo directories in 2.4

PATCH New Art Haas 1 participant 1 message Oct 10, 2003 Kbuild

lore
Share & tools
lore

Art Haas

author
#0 lore raw

PATCH 1/1 Make mrproper skip private repo directories in 2.4

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

Makefile +1 -1
Index: Makefile
===================================================================
@@ -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
Signature · 4 lines
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