[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Filtering loaddefs files in lisp/Makefile

From: Eli Zaretskii
Subject: Filtering loaddefs files in lisp/Makefile
Date: Sat, 02 Oct 2010 14:17:28 +0200

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]