]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix the distribution rules for the examples/po files.
authorBruno Haible <bruno@clisp.org>
Tue, 2 Dec 2003 20:40:41 +0000 (20:40 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:26 +0000 (12:11 +0200)
gettext-tools/ChangeLog
gettext-tools/configure.ac
gettext-tools/examples/ChangeLog
gettext-tools/examples/Makefile.am

index 66c37012d835419438eb9871efbe9404f721500b..06409153542614798da8d28abf02b085928e0728 100644 (file)
@@ -1,3 +1,7 @@
+2003-12-02  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac: Invoke FIX_MAKEFILE_DISTRIB for examples/Makefile.
+
 2003-11-30  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.13 released.
index 6587b8da5a5abb4cc9954af78d525896f31a5bad..565e61c8cf45dc1c411a5bddd6ff1d7e94b6aa50 100644 (file)
@@ -275,7 +275,8 @@ AC_CONFIG_FILES([m4/Makefile])
 AC_CONFIG_FILES([tests/Makefile],
                 [FIX_MAKEFILE_COMPILE])
 
-AC_CONFIG_FILES([examples/Makefile])
+AC_CONFIG_FILES([examples/Makefile],
+                [FIX_MAKEFILE_DISTRIB])
 AC_CONFIG_FILES([examples/installpaths])
 AC_CONFIG_FILES([examples/po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
 
index f774d4f2e0afe4278afbcaabf4eb6f3c593b0b52..7f26b653f4601af2b89f7233c23e302b318d94d1 100644 (file)
@@ -1,11 +1,16 @@
+2003-12-02  Bruno Haible  <bruno@clisp.org>
+
+       * examples/Makefile.am (EXTRA_DIST): Don't add the EXAMPLESFILES.
+       (distdir1): New rule. Install the EXAMPLESFILES after 'update-po'.
+
 2003-11-30  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.13 released.
 
 2003-11-30  Bruno Haible  <bruno@clisp.org>
 
-       * mmsmallpo.sh: Remove the POT-Creation-Date line from the generated PO
-       file.
+       * po/mmsmallpo.sh: Remove the POT-Creation-Date line from the generated
+       PO file.
        * Makefile.am (EXAMPLESFILES): Add hello-pascal/hello.rst.
 
 2003-11-30  Bruno Haible  <bruno@clisp.org>
index 96037d0dc4b4115f827fb92ef7f7c0bd3fc38ba0..720df50a22efd00b7fb4ec86dd06d570e676cb3b 100644 (file)
@@ -543,7 +543,18 @@ uninstall-local:
          rm -f $(DESTDIR)$(examplesdir)/$$f; \
        done
 
-EXTRA_DIST += $(EXAMPLESFILES)
+# Hidden from automake, but really activated. Works around an automake-1.5 bug.
+#distdir: distdir1
+distdir1:
+       cd po && $(MAKE) update-po
+       for file in $(EXAMPLESFILES); do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           $(mkinstalldirs) "$(distdir)/$$dir"; \
+         fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
 
 # Temporary directories created by po/Makefile.
 CLEANFILES = tmp-hello-*