[PATCH] Make mrproper skip private repo directories in 2.4

From: Art Haas
Date: Fri Oct 10 2003 - 08:22:38 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/