[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Missing tags
From: |
Eli Zaretskii |
Subject: |
Re: Missing tags |
Date: |
05 Feb 2004 08:15:19 +0200 |
> From: Juri Linkov <address@hidden>
> Date: Thu, 05 Feb 2004 04:53:54 +0200
>
> However, this regexp still produces too many tags because it
> adds duplicate tags from the ldefs-boot.el file. To match both
> loaddefs.el and ldefs-boot.el files sed could use GNU extended
> regexps with the `-r' argument:
>
> sed -r -e "s,$(lisp)/l(oad)?defs[^.]*\.el,,g"
Instead of using an unportable extension of GNU Sed, I'd simply use
two Sed commands, one to filter loaddefs.el, the other for
ldefs-boot.el. (Since Sed supports only basic regexps, there's no |
or ? meta-characters, and thus coming up with a single regexp that
matches the two names is not easy if we want to avoid false hits.)
Btw, I'm guessing that the ".*" in "loaddefs.*\.el" belongs to the
time when we had loaddefs-boot.el, which is no longer the case. So
there's no need to keep that complexity in Makefile.in.