mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] make distclean tries to delete dirs in tmpfs
Date: Wed, 9 May 2001 20:44:35 +0200	[thread overview]
Message-ID: <20010509204434.Q754@nightmaster.csn.tu-chemnitz.de> (raw)

Hi there,

make distclean deletes anything with size 0. This includes
directories, while making the kernel in tmpfs or ramfs.

This patch solves it, by not deleting directories in this rule.

Patch applies to any official kernel and with offsets even to
recent ac series.

--- linux-2.4.2-ac19/Makefile.orig  Wed May  9 10:47:04 2001
+++ linux-2.4.2-ac19/Makefile Wed May  9 10:51:04 2001
@@ -415,7 +415,8 @@
 	$(MAKE) -C Documentation/DocBook mrproper

 distclean: mrproper
-	rm -f core `find . \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
+	rm -f core `find . \( -not -type d \) -and \
+		\( -name '*.orig' -o -name '*.rej' -o -name '*~' \
 		-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
 		-o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -print` TAGS tags


Regards

Ingo Oeser
-- 
10.+11.03.2001 - 3. Chemnitzer LinuxTag <http://www.tu-chemnitz.de/linux/tag>
         <<<<<<<<<<<<     been there and had much fun   >>>>>>>>>>>>

             reply	other threads:[~2001-05-09 18:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-09 18:44 Ingo Oeser [this message]
2001-05-09 22:29 ` H. Peter Anvin
2001-05-10  7:33   ` Ingo Oeser

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=20010509204434.Q754@nightmaster.csn.tu-chemnitz.de \
    --to=ingo.oeser@informatik.tu-chemnitz.de \
    --cc=linux-kernel@vger.kernel.org \
    /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®