Re: glib-gettextize patch to handle Intltool [] tags
- From: ERDI Gergo <cactus cactus rulez org>
- To: Owen Taylor <otaylor redhat com>
- Cc: GTK+ development list <gtk-devel-list gnome org>
- Subject: Re: glib-gettextize patch to handle Intltool [] tags
- Date: Thu, 24 Jan 2002 19:16:19 +0100 (CET)
On Thu, 24 Jan 2002, Owen Taylor wrote:
> If we are adding regexes for support for an undocumented feature in a
> package adding extensions to the standard gettext POTFILES.in syntax,
> yes, we actually need a comment in the code.
>
> > + && (sed -e "s/\[.*\] +//" \
> > + -e '/^#/d' -e '/^[ ]*$$/d' \
> > + -e "s *@ $$posrcprefix& \\\\@" < $(srcdir)/$ in \
> > | sed -e '$$s/\\$$//') > $ -t \
>
> Also, could you make the regex more explicit to:
>
> \^[.*\] +
>
> And move it _after_ the comment stripping. (Actually, with the binding to
> the front, it shouldn't matter, but it's better code organization.)
how about a patch containing this one:
# POTFILES is created from POTFILES.in by stripping comments, whitespaces
# and Intltool tags (enclosed in square brackets), and appending a full
# relative path to them
POTFILES: POTFILES.in
( if test 'x$(srcdir)' != 'x.'; then \
posrcprefix='$(top_srcdir)/'; \
else \
posrcprefix="../"; \
fi; \
rm -f $ -t $@ \
&& (sed -e '/^#/d' \
-e "s/^\[.*\] +//" \
-e '/^[ ]*$$/d' \
-e "s *@ $$posrcprefix& \\\\@" < $(srcdir)/$ in \
| sed -e '$$s/\\$$//') > $ -t \
&& chmod a-w $ -t \
&& mv $ -t $@ )
--
.--= ULLA! =---------------------. `We are not here to give users what
\ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 2001
`---= cactus cactus rulez org =---'
Sajnálom, de nem tudok segíteni. Engem csak a szépségem miatt vettek fel.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]