]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Add scripts for fetching the PO files.
authorBruno Haible <bruno@clisp.org>
Fri, 24 Oct 2025 12:13:44 +0000 (14:13 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 24 Oct 2025 13:43:00 +0000 (15:43 +0200)
* gettext-runtime/po/fetch-po: New file.
* gettext-tools/po/fetch-po: New file.
* gettext-tools/examples/po/fetch-po: New file.
* check-copyright-headers (func_check_file): Don't complain about the LINGUAS
files, that will now have more than 10 lines.

Admin/release-steps
check-copyright-headers
gettext-runtime/po/fetch-po [new file with mode: 0755]
gettext-tools/examples/po/fetch-po [new file with mode: 0755]
gettext-tools/po/fetch-po [new file with mode: 0755]

index b10de4ac949f05191bc2c6fe2fb24c1ad9d544e8..1d82e1c5c61a50f2056d1431ab6ea7fd0c7a0d72 100644 (file)
@@ -167,29 +167,11 @@ We assume that the following environment variables are set:
 
 ** If you got any translation updates, update translations:
 
-    wget --mirror --level=1 -nd -nv -A.po -P gettext-runtime/po/new \
-         https://translationproject.org/latest/gettext-runtime/
-  Optionally merge:
-    cd gettext-runtime/po
-    mv new/*.po .
-    rm -rf new
-
-    wget --mirror --level=1 -nd -nv -A.po -P gettext-tools/po/new \
-         https://translationproject.org/latest/gettext-tools/
-  Optionally merge:
-    cd gettext-tools/po
-    mv new/*.po .
-    rm -rf new
-
-    wget --mirror --level=1 -nd -nv -A.po -P gettext-tools/examples/po/new \
-         https://translationproject.org/latest/gettext-examples/
-  Optionally merge:
-    cd gettext-tools/examples/po
-    mv new/*.po .
-    rm -rf new
-
-  Adjust LINGUAS files if any of the languages has been added or
-  removed since the last release.  Commit the changes.
+    (cd gettext-runtime/po && ./fetch-po)
+    (cd gettext-tools/po && ./fetch-po)
+    (cd gettext-tools/examples/po && ./fetch-po)
+
+    Commit the changes.
 
 ** Create a release:
 
index 1e0ce0488a8b6c30d8fd276c0ad89e04e6efe1f2..5137cf6825c80d5b357fe5e24516c1af48bac4b5 100755 (executable)
@@ -111,6 +111,11 @@ func_check_file ()
       # These are a mostly data.  They don't have much programmer expression.
       return 0 ;;
 
+    */LINGUAS )
+      # These are generated files that contain only data.
+      # They don't have any programmer expression.
+      return 0 ;;
+
     */ChangeLog* )
       # ChangeLog files are convenience information, not worth sueing for.
       return 0 ;;
diff --git a/gettext-runtime/po/fetch-po b/gettext-runtime/po/fetch-po
new file mode 100755 (executable)
index 0000000..c8f4b55
--- /dev/null
@@ -0,0 +1,17 @@
+#! /bin/sh
+# Script for fetching the PO files, produced by translators, from a
+# translations project's site on the internet, to the current directory.
+#
+# Copyright (C) 2025 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to use, copy, distribute, and modify it.
+
+# Usage: ./fetch-po
+#
+# This script is invoked from two locations:
+# 1. From the script that fetches auxiliary files that are omitted from
+#    the version control repository of this package, typically called
+#    'autopull.sh' or 'bootstrap --pull' or similar.
+# 2. From the Makefile in the po/ directory, target 'fetch-po'.
+
+po-fetch --git TP gettext-runtime
diff --git a/gettext-tools/examples/po/fetch-po b/gettext-tools/examples/po/fetch-po
new file mode 100755 (executable)
index 0000000..366ae5c
--- /dev/null
@@ -0,0 +1,17 @@
+#! /bin/sh
+# Script for fetching the PO files, produced by translators, from a
+# translations project's site on the internet, to the current directory.
+#
+# Copyright (C) 2025 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to use, copy, distribute, and modify it.
+
+# Usage: ./fetch-po
+#
+# This script is invoked from two locations:
+# 1. From the script that fetches auxiliary files that are omitted from
+#    the version control repository of this package, typically called
+#    'autopull.sh' or 'bootstrap --pull' or similar.
+# 2. From the Makefile in the po/ directory, target 'fetch-po'.
+
+po-fetch --git TP gettext-examples
diff --git a/gettext-tools/po/fetch-po b/gettext-tools/po/fetch-po
new file mode 100755 (executable)
index 0000000..957f2bb
--- /dev/null
@@ -0,0 +1,17 @@
+#! /bin/sh
+# Script for fetching the PO files, produced by translators, from a
+# translations project's site on the internet, to the current directory.
+#
+# Copyright (C) 2025 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to use, copy, distribute, and modify it.
+
+# Usage: ./fetch-po
+#
+# This script is invoked from two locations:
+# 1. From the script that fetches auxiliary files that are omitted from
+#    the version control repository of this package, typically called
+#    'autopull.sh' or 'bootstrap --pull' or similar.
+# 2. From the Makefile in the po/ directory, target 'fetch-po'.
+
+po-fetch --git TP gettext-tools