From: Bruno Haible Date: Fri, 24 Oct 2025 12:13:44 +0000 (+0200) Subject: build: Add scripts for fetching the PO files. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6eb3598f7626c39471e19281e8e9c95ca0fdaf0b;p=thirdparty%2Fgettext.git build: Add scripts for fetching the PO files. * 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. --- diff --git a/Admin/release-steps b/Admin/release-steps index b10de4ac9..1d82e1c5c 100644 --- a/Admin/release-steps +++ b/Admin/release-steps @@ -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: diff --git a/check-copyright-headers b/check-copyright-headers index 1e0ce0488..5137cf682 100755 --- a/check-copyright-headers +++ b/check-copyright-headers @@ -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 index 000000000..c8f4b55ce --- /dev/null +++ b/gettext-runtime/po/fetch-po @@ -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 index 000000000..366ae5c88 --- /dev/null +++ b/gettext-tools/examples/po/fetch-po @@ -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 index 000000000..957f2bb5b --- /dev/null +++ b/gettext-tools/po/fetch-po @@ -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