Remove inlttool [] tags from POTFILE.in
authorERDI Gergo <cactus@cactus.rulez.org>
Fri, 25 Jan 2002 00:30:43 +0000 (00:30 +0000)
committerÉRDI Gergo <cactus@src.gnome.org>
Fri, 25 Jan 2002 00:30:43 +0000 (00:30 +0000)
2002-01-23  ERDI Gergo  <cactus@cactus.rulez.org>

* Makefile.in.in (POTFILES): Remove inlttool [] tags from
POTFILE.in

po/ChangeLog
po/Makefile.in.in

index df459ad..bca85bb 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-23  ERDI Gergo  <cactus@cactus.rulez.org>
+
+       * Makefile.in.in (POTFILES): Remove inlttool [] tags from
+       POTFILE.in
+
 2002-01-21  Zbigniew Chyla  <cyba@gnome.pl>
 
        * pl.po: Updated Polish translation by
index f00b218..be4bfa2 100644 (file)
@@ -234,6 +234,9 @@ update-po: Makefile
          fi; \
        done
 
+# POTFILES is created from POTFILES.in by stripping comments, empty lines
+# 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)/'; \
@@ -241,8 +244,10 @@ POTFILES: POTFILES.in
            posrcprefix="../"; \
          fi; \
          rm -f $@-t $@ \
-           && (sed -e '/^#/d' -e '/^[  ]*$$/d' \
-                   -e "s@.*@   $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
+           && (sed -e '/^#/d'                                          \
+                   -e "s/^\[.*\] +//"                                  \
+                   -e '/^[     ]*$$/d'                                 \
+                   -e "s@.*@   $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
                | sed -e '$$s/\\$$//') > $@-t \
            && chmod a-w $@-t \
            && mv $@-t $@ )