~danilo/intltool/intltool-xmlcat

« back to all changes in this revision

Viewing changes to xml-i18n-tools.Makefile.patch

  • Committer: mstachow
  • Date: 2001-01-03 23:09:09 UTC
  • Revision ID: vcs-imports@canonical.com-20010103230909-p384m2ju3k0g8zdt
        Initial checkin of xml-i18n system.

        * .cvsignore: Files to ignore.
        * AUTHORS: Add me and Kenny.
        * COPYING: The GPL
        * INSTALL: Install instructions
        * Makefile.am: Makefile.
        * autogen.sh: the usual.
        * configure.in: Generate generated files.

        * xml-i18n-toolize.in: Used to generate xml-i18n-toolize, a
        program like libtoolize that makes your module use xml-i18n-tools.

        * xml-i18n-extract.in: Used to generate xml-i18n-extract; based on
        Kenneth Christiansen's ui-extract.pl. This script knows how to
        extract translations from -ui.xml, nautilus theme, .glad and
        .oaf.in files.

        * xml-i18n-update.in: Used to generate
        xml-i18n-update. This translation update script is based on based on
        Kenneth Christiansen's update.pl

        * xml-i18n-merge.in: Used to generate xml-i18n-merge, an XML
        translation merge script (only works for .oaf files so far).

        * xml-i18n-tools.Makefile.patch: Patch for po/Makefile.in.in,
        automatically applied after xml-18n-toolize

        * xml-i18n-tools.m4: M4 macro file that defines AM_PROG_XML_I18N_TOOLS

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- Makefile.in.in.clean        Wed Jan  3 05:25:20 2001
 
2
+++ Makefile.in.in      Wed Jan  3 06:23:31 2001
 
3
@@ -14,6 +14,7 @@
 
4
 
 
5
 srcdir = @srcdir@
 
6
 top_srcdir = @top_srcdir@
 
7
+top_builddir = ..
 
8
 VPATH = @srcdir@
 
9
 
 
10
 prefix = @prefix@
 
11
@@ -35,7 +36,12 @@
 
12
 GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
 
13
 MSGFMT = @MSGFMT@
 
14
 XGETTEXT = PATH=../src:$$PATH @XGETTEXT@
 
15
-MSGMERGE = PATH=../src:$$PATH msgmerge
 
16
+XML_I18N_UPDATE=@XML_I18N_UPDATE@
 
17
+XML_I18N_EXTRACT=@XML_I18N_EXTRACT@
 
18
+
 
19
+MSGMERGE = PATH=$(top_builddir):$$PATH PACKAGE=$(PACKAGE) XML_I18N_EXTRACT=$(XML_I18N_EXTRACT) $(XML_I18N_UPDATE) --dist
 
20
+GENPOT   = PATH=$(top_builddir):$$PATH PACKAGE=$(PACKAGE) XML_I18N_EXTRACT=$(XML_I18N_EXTRACT) $(XML_I18N_UPDATE) --pot
 
21
+GENHEAD  = PATH=$(top_builddir):$$PATH PACKAGE=$(PACKAGE) XML_I18N_EXTRACT=$(XML_I18N_EXTRACT) $(XML_I18N_UPDATE) --headers
 
22
 
 
23
 DEFS = @DEFS@
 
24
 CFLAGS = @CFLAGS@
 
25
@@ -49,7 +55,7 @@
 
26
 POFILES = @POFILES@
 
27
 GMOFILES = @GMOFILES@
 
28
 DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
 
29
-stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES)
 
30
+stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES) $(XML_I18N_UPDATE) $(XML_I18N_EXTRACT)
 
31
 
 
32
 POTFILES = \
 
33
 
 
34
@@ -85,12 +91,7 @@
 
35
 all-no:
 
36
 
 
37
 $(srcdir)/$(PACKAGE).pot: $(POTFILES)
 
38
-       $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
 
39
-         --add-comments --keyword=_ --keyword=N_ \
 
40
-         --files-from=$(srcdir)/POTFILES.in \
 
41
-       && test ! -f $(PACKAGE).po \
 
42
-          || ( rm -f $(srcdir)/$(PACKAGE).pot \
 
43
-               && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
 
44
+       $(GENPOT)
 
45
 
 
46
 $(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
 
47
 $(srcdir)/stamp-cat-id: $(PACKAGE).pot
 
48
@@ -216,18 +217,21 @@
 
49
        for cat in $$catalogs; do \
 
50
          cat=`basename $$cat`; \
 
51
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
 
52
-         mv $$lang.po $$lang.old.po; \
 
53
+         cp $$lang.po $$lang.old.po; \
 
54
          echo "$$lang:"; \
 
55
-         if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \
 
56
-           rm -f $$lang.old.po; \
 
57
+         if $(MSGMERGE) $$lang; then \
 
58
+         rm -f $$lang.old.po; \
 
59
          else \
 
60
            echo "msgmerge for $$cat failed!"; \
 
61
-           rm -f $$lang.po; \
 
62
            mv $$lang.old.po $$lang.po; \
 
63
          fi; \
 
64
        done
 
65
 
 
66
-POTFILES: POTFILES.in
 
67
+.headerlock:
 
68
+       $(GENHEAD)
 
69
+       touch .headerlock
 
70
+
 
71
+POTFILES: POTFILES.in .headerlock
 
72
        ( if test 'x$(srcdir)' != 'x.'; then \
 
73
            posrcprefix='$(top_srcdir)/'; \
 
74
          else \