[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Filtering loaddefs files in lisp/Makefile
From: |
Chong Yidong |
Subject: |
Re: Filtering loaddefs files in lisp/Makefile |
Date: |
Sat, 02 Oct 2010 12:24:29 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> 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 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.
Seems fine.