changed sed expression to deal with the encoding tag in POTFILES.in.

2006-02-28  Sven Neumann  <sven@gimp.org>

	* Makefile.in.in: changed sed expression to deal with the encoding
	tag in POTFILES.in.
This commit is contained in:
Sven Neumann 2006-02-28 20:28:11 +00:00 committed by Sven Neumann
parent a48abe8337
commit b12ffc59f2
2 changed files with 11 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2006-02-28 Sven Neumann <sven@gimp.org>
* Makefile.in.in: changed sed expression to deal with the encoding
tag in POTFILES.in.
2006-02-28 Sven Neumann <sven@gimp.org>
* POTFILES.in: specify encoding.

View File

@ -233,17 +233,13 @@ update-po: Makefile
# 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; \
( posrcprefix='$(top_srcdir)/'; \
rm -f $@-t $@ \
&& (sed -e '/^#/d' \
-e "s/^\[.*\] +//" \
-e '/^[ ]*$$/d' \
-e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
| sed -e '$$s/\\$$//') > $@-t \
&& (sed -e '/^#/d' \
-e 's/^[[].*] *//' \
-e '/^[ ]*$$/d' \
-e "s@^@ $$posrcprefix@" $(srcdir)/$@.in \
| sed -e '$$!s/$$/ \\/') > $@-t \
&& chmod a-w $@-t \
&& mv $@-t $@ )