emacs-devel
[Top][All Lists]
Advanced

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

Re: Filtering loaddefs files in lisp/Makefile


From: Francesco Potortì
Subject: Re: Filtering loaddefs files in lisp/Makefile
Date: Sun, 03 Oct 2010 00:59:56 +0200

>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 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 $@ -



reply via email to

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