mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Art Haas" <ahaas@airmail.net>
To: linux-kernel@vger.kernel.org
Cc: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Subject: [PATCH] Make mrproper skip private repo directories in 2.4
Date: Fri, 10 Oct 2003 08:21:41 -0500	[thread overview]
Message-ID: <20031010132141.GA3934@artsapartment.org> (raw)

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

                 reply	other threads:[~2003-10-10 13:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031010132141.GA3934@artsapartment.org \
    --to=ahaas@airmail.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®