From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francesco =?utf-8?Q?Potort=C3=AC?= Newsgroups: gmane.emacs.devel Subject: Re: Filtering loaddefs files in lisp/Makefile Date: Sun, 03 Oct 2010 00:59:56 +0200 Message-ID: References: <83wrq0pz53.fsf@gnu.org> <87hbh4sgua.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1286060476 31858 80.91.229.12 (2 Oct 2010 23:01:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Oct 2010 23:01:16 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 03 01:01:14 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P2B4r-0005EJ-KS for ged-emacs-devel@m.gmane.org; Sun, 03 Oct 2010 01:01:13 +0200 Original-Received: from localhost ([127.0.0.1]:57604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2B4q-0005fN-Ix for ged-emacs-devel@m.gmane.org; Sat, 02 Oct 2010 19:01:12 -0400 Original-Received: from [140.186.70.92] (port=53439 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2B4k-0005eZ-Hq for emacs-devel@gnu.org; Sat, 02 Oct 2010 19:01:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2B4j-0003aX-Dv for emacs-devel@gnu.org; Sat, 02 Oct 2010 19:01:06 -0400 Original-Received: from mx2.isti.cnr.it ([194.119.192.4]:1471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2B4h-0003aC-TY; Sat, 02 Oct 2010 19:01:04 -0400 Original-Received: from conversionlocal.isti.cnr.it by mx.isti.cnr.it (PMDF V6.5 #31825) id <01NSLJO2FCAOJP8JVK@mx.isti.cnr.it>; Sun, 03 Oct 2010 00:59:59 +0100 Original-Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by mx.isti.cnr.it (PMDF V6.5 #31826) with ESMTPSA id <01NSLJO10G46JNYCTC@mx.isti.cnr.it>; Sun, 03 Oct 2010 00:59:57 +0100 Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.72) (envelope-from ) id 1P2B3c-0004sC-TH; Sun, 03 Oct 2010 00:59:56 +0200 In-reply-to: <87hbh4sgua.fsf@stupidchicken.com> X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-detected-operating-system: by eggs.gnu.org: OpenVMS 7.2 (Multinet 4.3-4.4 stack) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131264 Archived-At: >Eli Zaretskii writes: > >> What do people think about replacing this ugliness: >> >> els=`echo $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | sed -e "s,$(lisp)/[^ ]*loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ >> ${ETAGS} -o $@ $$els >> >> with a command that uses `find', e.g.: >> >> find . -name "*.el" -a -\! -( -name "*loaddefs.el" -o -name "ldefs-boot.el" -) | ${ETAGS} -o $@ - The find manual says it is "\!", not "-!". The following corrects the above and is slightly simpler: find . -name "*.el" -a \! -name "*loaddefs.el" -a \! -name "ldefs-boot.el" | ${ETAGS} -o $@ - I think that inside a script quoting the ! is useless, as shell history expansion is not enabled. This would bring to this: find . -name "*.el" -a ! -name "*loaddefs.el" -a ! -name "ldefs-boot.el" | ${ETAGS} -o $@ -