From patchwork Wed Aug 10 11:16:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Marek X-Patchwork-Id: 1052712 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7ABH76h006782 for ; Wed, 10 Aug 2011 11:17:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753245Ab1HJLRG (ORCPT ); Wed, 10 Aug 2011 07:17:06 -0400 Received: from cantor2.suse.de ([195.135.220.15]:33069 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753000Ab1HJLRF (ORCPT ); Wed, 10 Aug 2011 07:17:05 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id B0AD0890B6; Wed, 10 Aug 2011 13:17:04 +0200 (CEST) Received: by sepie.suse.cz (Postfix, from userid 10020) id 1E2DD764B1; Wed, 10 Aug 2011 13:17:03 +0200 (CEST) From: Michal Marek To: dhowells@redhat.com Cc: arnd@arndb.de, linux-kbuild@vger.kernel.org, lacombar@gmail.com Subject: [PATCH] kbuild: Do not delete empty files in make distclean Date: Wed, 10 Aug 2011 13:16:58 +0200 Message-Id: <1312975018-25095-1-git-send-email-mmarek@suse.cz> X-Mailer: git-send-email 1.7.6 In-Reply-To: <25697.1311857663@redhat.com> References: <25697.1311857663@redhat.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 10 Aug 2011 11:17:07 +0000 (UTC) Commit 3d64b44 introduced an empty file under arch/arm/mach-zynq/board_dt.c. While this was not intended and the file was removed from the tree by a later commit, we really should only match junk files by known name patterns and not their size. Reported-by: David Howells Signed-off-by: Michal Marek --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index b4ca4e1..d714838 100644 --- a/Makefile +++ b/Makefile @@ -1198,7 +1198,7 @@ distclean: mrproper @find $(srctree) $(RCS_FIND_IGNORE) \ \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ - -o -name '.*.rej' -o -size 0 \ + -o -name '.*.rej' \ -o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \ -type f -print | xargs rm -f