]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
po: Distribute the fetch-po file.
authorBruno Haible <bruno@clisp.org>
Wed, 28 Jan 2026 20:51:24 +0000 (21:51 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 28 Jan 2026 20:52:34 +0000 (21:52 +0100)
This is somewhat tricky, because it is also a phony Makefile target.

* gettext-tools/wizard/po-templates/traditional/Makefile.in.in (dist2):
Distribute 'fetch-po'.
* gettext-tools/examples/po/Makefile.am (distdir1): Distribute 'fetch-po'.
* gettext-tools/examples/hello-*/po/Makefile.am (distdir1): Likewise.

30 files changed:
gettext-tools/examples/hello-c++-qt/po/Makefile.am
gettext-tools/examples/hello-c++-wxwidgets/po/Makefile.am
gettext-tools/examples/hello-clisp/po/Makefile.am
gettext-tools/examples/hello-csharp-forms/po/Makefile.am
gettext-tools/examples/hello-csharp/po/Makefile.am
gettext-tools/examples/hello-d/po/Makefile.am
gettext-tools/examples/hello-gawk/po/Makefile.am
gettext-tools/examples/hello-go-http/po/Makefile.am
gettext-tools/examples/hello-go/po/Makefile.am
gettext-tools/examples/hello-guile/po/Makefile.am
gettext-tools/examples/hello-java-awt/po/Makefile.am
gettext-tools/examples/hello-java-qtjambi/po/Makefile.am
gettext-tools/examples/hello-java-swing/po/Makefile.am
gettext-tools/examples/hello-java/po/Makefile.am
gettext-tools/examples/hello-librep/po/Makefile.am
gettext-tools/examples/hello-modula2/po/Makefile.am
gettext-tools/examples/hello-ocaml/po/Makefile.am
gettext-tools/examples/hello-pascal/po/Makefile.am
gettext-tools/examples/hello-perl/po/Makefile.am
gettext-tools/examples/hello-php/po/Makefile.am
gettext-tools/examples/hello-python/po/Makefile.am
gettext-tools/examples/hello-ruby/po/Makefile.am
gettext-tools/examples/hello-rust/po/Makefile.am
gettext-tools/examples/hello-sh/po/Makefile.am
gettext-tools/examples/hello-smalltalk/po/Makefile.am
gettext-tools/examples/hello-tcl-tk/po/Makefile.am
gettext-tools/examples/hello-tcl/po/Makefile.am
gettext-tools/examples/hello-ycp/po/Makefile.am
gettext-tools/examples/po/Makefile.am
gettext-tools/wizard/po-templates/traditional/Makefile.in.in

index 9ab8018c4bbfa1e3638742d76d52389317dc34e0..ecf07bb31b8b01186be934cf7e2b5cf3f042bec4 100644 (file)
@@ -367,6 +367,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(QMFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 6735330b7db5f3bcebf7d25e5f8b68e3705a0603..57d944593c6fa0d81730d75f6ad9415495202f1a 100644 (file)
@@ -432,6 +432,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 1a38e897d3f31e454d72d1fa18c894eaec3a152f..e7ddede433bd02e06c2510cbd84b02855d294370 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 76873691a7b7de8df69677e8e1c0cd7963df39b4..f491112e5833e3875ec3a1c34ef2d68b7868d19c 100644 (file)
@@ -372,6 +372,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(RESOURCESDLLFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 76873691a7b7de8df69677e8e1c0cd7963df39b4..f491112e5833e3875ec3a1c34ef2d68b7868d19c 100644 (file)
@@ -372,6 +372,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(RESOURCESDLLFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 223e277e45e43ead64386d54465ca045083b5182..d6b3205a0064724ad3c9e9ab23d49420a750fee1 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index ba6c18a90fd35be1b2b783b49d522638279b5ddf..6860193f5fdbab97bdd4d11eece68a1d1b88d9fa 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index bb0533e8ac8de1ec26bd05ce4b0c40bed68a823f..8cc6104cbef352e99e508ae3484ee3b0a1b65dd3 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index ea9a8ae469f63a1c243e14627667bd23a5c5ad16..c1771d1949afbc3fc99bbb66af964952f7768689 100644 (file)
@@ -429,6 +429,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 96fae19ce06311b9693304becbbfb1abd7e6a37c..ead679f0c59c7953d1a38f0ccb3667ffbccdfa57 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index f6c468cc736a6e17868c1e22016e308f99d45fb6..4e20b047347f8b7d8ca66973280c1af160438640 100644 (file)
@@ -321,6 +321,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(DOMAIN).properties $(PROPE
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index f6c468cc736a6e17868c1e22016e308f99d45fb6..4e20b047347f8b7d8ca66973280c1af160438640 100644 (file)
@@ -321,6 +321,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(DOMAIN).properties $(PROPE
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index f6c468cc736a6e17868c1e22016e308f99d45fb6..4e20b047347f8b7d8ca66973280c1af160438640 100644 (file)
@@ -321,6 +321,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(DOMAIN).properties $(PROPE
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index f6c468cc736a6e17868c1e22016e308f99d45fb6..4e20b047347f8b7d8ca66973280c1af160438640 100644 (file)
@@ -321,6 +321,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(DOMAIN).properties $(PROPE
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 5aa2a6f6977f3fbad1467980d5a549da8c385438..abdb9dc1aee8d559ca7ddc5a770d6ecea23218b6 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index ceae6c0facc0989bbafa46591b7ffea43959e58b..b39d67c8aaacec108f06f0e54683f3f172657f65 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 57e327924d0af46c283fddf16a81f6e2ebc85a09..8fe9c5a031c21e12cee6fa55300c4a3ed4926c64 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index b0cf5c7bcec596383188ed4d662b6a7a9b489a2f..8521d67a47731307ae1ca9c5e790418a24fd73c2 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 0d39184578f8ec7ca6530eef825b72060c783c74..792dedd701fc2f5cd203f8b04f95ae6416706304 100644 (file)
@@ -436,6 +436,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index e9655d0599597ced420504cb39e195927849a918..e0326df6987dc2999968c4ed06f59870ee24e751 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 8d55cb12e16b57873f286e705b94bf975f6e61c9..6cf61ff74944bd24e067c79472581c5a95718c8d 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 101651202adb63c0d68f4ca1c8620352f9499f32..8b4a97022133c26895294198012f9cac315a9c2a 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 6247dc320cd551de12e04b7411b0f13f5362fe5d..19c027357c08727226a5b953959b693452a6f5a1 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index f3b13d9b1d3918d2bdd7a47486656f59133d703e..76df277320178a8f182388e8967efcf8dff96a68 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 24922f7687411cd58fa136416827bd5af4db7a16..df43818216a970cc59303abbee67bc2546d9dab0 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 1267362230b500a463b936cc28da01d5f06e5467..e890062ad08a5384bff6fd19af7250fc46548763 100644 (file)
@@ -360,6 +360,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(MSGFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 1267362230b500a463b936cc28da01d5f06e5467..e890062ad08a5384bff6fd19af7250fc46548763 100644 (file)
@@ -360,6 +360,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(MSGFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 29cff54c935e00264fcf6e7d736aedea48ae9821..5b589b8810c0c2bf1a8d6c4247066ccf519382f5 100644 (file)
@@ -426,6 +426,10 @@ EXTRA_DIST = remove-potcdate.sed LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
+       @for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index 3eceeccc74c3ab7278f53e3a7bba285084153892..e15fcf03508f240630491d1ad231635483c3f1d9 100644 (file)
@@ -1,5 +1,5 @@
 ## Makefile for the gettext-tools/examples/po subdirectory of GNU gettext
-## Copyright (C) 1995-2025 Free Software Foundation, Inc.
+## Copyright (C) 1995-2026 Free Software Foundation, Inc.
 ##
 ## This program is free software: you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -432,6 +432,10 @@ EXTRA_DIST = remove-potcdate.sed xsmallpot.sh mmsmallpo.sh LINGUAS \
 # Hidden from automake, but really activated. Works around an automake-1.5 bug.
 #distdir: distdir1
 distdir1: $(srcdir)/$(DOMAIN).pot
+       for file in fetch-po; do \
+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
+         cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+       done
        if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po $(SMALLPOTS); do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
index e50537210a753c2a194c928f19a7628417f2ce23..c52accc2d6ecf06285431a9be1eb348fb1d02c26 100644 (file)
@@ -492,7 +492,7 @@ dist distdir:
        @$(MAKE) dist2
 # This is a separate target because 'update-po' must be executed before.
 dist2: $(srcdir)/stamp-po $(DISTFILES)
-       @dists="$(DISTFILES)"; \
+       @dists="$(DISTFILES) fetch-po"; \
        if test -f $(srcdir)/$(DOMAIN).pot; then \
          dists="$$dists $(DOMAIN).pot stamp-po"; \
        else \