From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Filtering loaddefs files in lisp/Makefile Date: Sat, 02 Oct 2010 14:17:28 +0200 Message-ID: <83wrq0pz53.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1286021905 16532 80.91.229.12 (2 Oct 2010 12:18:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Oct 2010 12:18:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 02 14:18:24 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 1P212I-0003pb-KR for ged-emacs-devel@m.gmane.org; Sat, 02 Oct 2010 14:18:22 +0200 Original-Received: from localhost ([127.0.0.1]:42476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2123-0003V2-5g for ged-emacs-devel@m.gmane.org; Sat, 02 Oct 2010 08:17:39 -0400 Original-Received: from [140.186.70.92] (port=43957 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P211x-0003UI-8y for emacs-devel@gnu.org; Sat, 02 Oct 2010 08:17:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P211v-0001Jk-JU for emacs-devel@gnu.org; Sat, 02 Oct 2010 08:17:33 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:61242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P211v-0001JH-Ca for emacs-devel@gnu.org; Sat, 02 Oct 2010 08:17:31 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L9N00900WNYCM00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 02 Oct 2010 14:17:23 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.77.74]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L9N008SNWSYN9D0@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 02 Oct 2010 14:17:23 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:131232 Archived-At: 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 combined length of all the Lisp files expanded from $(lisptagsfilesN) is 32K, so I guess a few shells will choke on what we currently have, while doing it with `find' will avoid that problem. As a bonus, we won't need to track the depth of the `lisp' tree hierarchy by adding more of the $(lisptagsfilesN) variables.