From: Bruno Haible Date: Wed, 28 Jan 2026 20:51:24 +0000 (+0100) Subject: po: Distribute the fetch-po file. X-Git-Tag: v1.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6526539ae8edecb3146337211d11bda7ff27b24d;p=thirdparty%2Fgettext.git po: Distribute the fetch-po file. 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. --- diff --git a/gettext-tools/examples/hello-c++-qt/po/Makefile.am b/gettext-tools/examples/hello-c++-qt/po/Makefile.am index 9ab8018c4..ecf07bb31 100644 --- a/gettext-tools/examples/hello-c++-qt/po/Makefile.am +++ b/gettext-tools/examples/hello-c++-qt/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-c++-wxwidgets/po/Makefile.am b/gettext-tools/examples/hello-c++-wxwidgets/po/Makefile.am index 6735330b7..57d944593 100644 --- a/gettext-tools/examples/hello-c++-wxwidgets/po/Makefile.am +++ b/gettext-tools/examples/hello-c++-wxwidgets/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-clisp/po/Makefile.am b/gettext-tools/examples/hello-clisp/po/Makefile.am index 1a38e897d..e7ddede43 100644 --- a/gettext-tools/examples/hello-clisp/po/Makefile.am +++ b/gettext-tools/examples/hello-clisp/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-csharp-forms/po/Makefile.am b/gettext-tools/examples/hello-csharp-forms/po/Makefile.am index 76873691a..f491112e5 100644 --- a/gettext-tools/examples/hello-csharp-forms/po/Makefile.am +++ b/gettext-tools/examples/hello-csharp-forms/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-csharp/po/Makefile.am b/gettext-tools/examples/hello-csharp/po/Makefile.am index 76873691a..f491112e5 100644 --- a/gettext-tools/examples/hello-csharp/po/Makefile.am +++ b/gettext-tools/examples/hello-csharp/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-d/po/Makefile.am b/gettext-tools/examples/hello-d/po/Makefile.am index 223e277e4..d6b3205a0 100644 --- a/gettext-tools/examples/hello-d/po/Makefile.am +++ b/gettext-tools/examples/hello-d/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-gawk/po/Makefile.am b/gettext-tools/examples/hello-gawk/po/Makefile.am index ba6c18a90..6860193f5 100644 --- a/gettext-tools/examples/hello-gawk/po/Makefile.am +++ b/gettext-tools/examples/hello-gawk/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-go-http/po/Makefile.am b/gettext-tools/examples/hello-go-http/po/Makefile.am index bb0533e8a..8cc6104cb 100644 --- a/gettext-tools/examples/hello-go-http/po/Makefile.am +++ b/gettext-tools/examples/hello-go-http/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-go/po/Makefile.am b/gettext-tools/examples/hello-go/po/Makefile.am index ea9a8ae46..c1771d194 100644 --- a/gettext-tools/examples/hello-go/po/Makefile.am +++ b/gettext-tools/examples/hello-go/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-guile/po/Makefile.am b/gettext-tools/examples/hello-guile/po/Makefile.am index 96fae19ce..ead679f0c 100644 --- a/gettext-tools/examples/hello-guile/po/Makefile.am +++ b/gettext-tools/examples/hello-guile/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-java-awt/po/Makefile.am b/gettext-tools/examples/hello-java-awt/po/Makefile.am index f6c468cc7..4e20b0473 100644 --- a/gettext-tools/examples/hello-java-awt/po/Makefile.am +++ b/gettext-tools/examples/hello-java-awt/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-java-qtjambi/po/Makefile.am b/gettext-tools/examples/hello-java-qtjambi/po/Makefile.am index f6c468cc7..4e20b0473 100644 --- a/gettext-tools/examples/hello-java-qtjambi/po/Makefile.am +++ b/gettext-tools/examples/hello-java-qtjambi/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-java-swing/po/Makefile.am b/gettext-tools/examples/hello-java-swing/po/Makefile.am index f6c468cc7..4e20b0473 100644 --- a/gettext-tools/examples/hello-java-swing/po/Makefile.am +++ b/gettext-tools/examples/hello-java-swing/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-java/po/Makefile.am b/gettext-tools/examples/hello-java/po/Makefile.am index f6c468cc7..4e20b0473 100644 --- a/gettext-tools/examples/hello-java/po/Makefile.am +++ b/gettext-tools/examples/hello-java/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-librep/po/Makefile.am b/gettext-tools/examples/hello-librep/po/Makefile.am index 5aa2a6f69..abdb9dc1a 100644 --- a/gettext-tools/examples/hello-librep/po/Makefile.am +++ b/gettext-tools/examples/hello-librep/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-modula2/po/Makefile.am b/gettext-tools/examples/hello-modula2/po/Makefile.am index ceae6c0fa..b39d67c8a 100644 --- a/gettext-tools/examples/hello-modula2/po/Makefile.am +++ b/gettext-tools/examples/hello-modula2/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-ocaml/po/Makefile.am b/gettext-tools/examples/hello-ocaml/po/Makefile.am index 57e327924..8fe9c5a03 100644 --- a/gettext-tools/examples/hello-ocaml/po/Makefile.am +++ b/gettext-tools/examples/hello-ocaml/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-pascal/po/Makefile.am b/gettext-tools/examples/hello-pascal/po/Makefile.am index b0cf5c7bc..8521d67a4 100644 --- a/gettext-tools/examples/hello-pascal/po/Makefile.am +++ b/gettext-tools/examples/hello-pascal/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-perl/po/Makefile.am b/gettext-tools/examples/hello-perl/po/Makefile.am index 0d3918457..792dedd70 100644 --- a/gettext-tools/examples/hello-perl/po/Makefile.am +++ b/gettext-tools/examples/hello-perl/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-php/po/Makefile.am b/gettext-tools/examples/hello-php/po/Makefile.am index e9655d059..e0326df69 100644 --- a/gettext-tools/examples/hello-php/po/Makefile.am +++ b/gettext-tools/examples/hello-php/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-python/po/Makefile.am b/gettext-tools/examples/hello-python/po/Makefile.am index 8d55cb12e..6cf61ff74 100644 --- a/gettext-tools/examples/hello-python/po/Makefile.am +++ b/gettext-tools/examples/hello-python/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-ruby/po/Makefile.am b/gettext-tools/examples/hello-ruby/po/Makefile.am index 101651202..8b4a97022 100644 --- a/gettext-tools/examples/hello-ruby/po/Makefile.am +++ b/gettext-tools/examples/hello-ruby/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-rust/po/Makefile.am b/gettext-tools/examples/hello-rust/po/Makefile.am index 6247dc320..19c027357 100644 --- a/gettext-tools/examples/hello-rust/po/Makefile.am +++ b/gettext-tools/examples/hello-rust/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-sh/po/Makefile.am b/gettext-tools/examples/hello-sh/po/Makefile.am index f3b13d9b1..76df27732 100644 --- a/gettext-tools/examples/hello-sh/po/Makefile.am +++ b/gettext-tools/examples/hello-sh/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-smalltalk/po/Makefile.am b/gettext-tools/examples/hello-smalltalk/po/Makefile.am index 24922f768..df4381821 100644 --- a/gettext-tools/examples/hello-smalltalk/po/Makefile.am +++ b/gettext-tools/examples/hello-smalltalk/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-tcl-tk/po/Makefile.am b/gettext-tools/examples/hello-tcl-tk/po/Makefile.am index 126736223..e890062ad 100644 --- a/gettext-tools/examples/hello-tcl-tk/po/Makefile.am +++ b/gettext-tools/examples/hello-tcl-tk/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-tcl/po/Makefile.am b/gettext-tools/examples/hello-tcl/po/Makefile.am index 126736223..e890062ad 100644 --- a/gettext-tools/examples/hello-tcl/po/Makefile.am +++ b/gettext-tools/examples/hello-tcl/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/hello-ycp/po/Makefile.am b/gettext-tools/examples/hello-ycp/po/Makefile.am index 29cff54c9..5b589b881 100644 --- a/gettext-tools/examples/hello-ycp/po/Makefile.am +++ b/gettext-tools/examples/hello-ycp/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/examples/po/Makefile.am b/gettext-tools/examples/po/Makefile.am index 3eceeccc7..e15fcf035 100644 --- a/gettext-tools/examples/po/Makefile.am +++ b/gettext-tools/examples/po/Makefile.am @@ -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; \ diff --git a/gettext-tools/wizard/po-templates/traditional/Makefile.in.in b/gettext-tools/wizard/po-templates/traditional/Makefile.in.in index e50537210..c52accc2d 100644 --- a/gettext-tools/wizard/po-templates/traditional/Makefile.in.in +++ b/gettext-tools/wizard/po-templates/traditional/Makefile.in.in @@ -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 \