]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Translations: Add custom .pot header with SPDX license identifier.
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 14 Feb 2024 16:31:16 +0000 (18:31 +0200)
The same is used for both po/xz.pot and po4a/xz-man.pot.

Makefile.am
po/xz.pot-header [new file with mode: 0644]
po4a/update-po

index d0548580dbfa98e06e2a5253254ea8009e7d64aa..b41947e60d9980fe78b4da115a1f74c87ba00130 100644 (file)
@@ -50,6 +50,7 @@ uninstall-local:
 endif
 
 EXTRA_DIST = \
+       po/xz.pot-header \
        po4a \
        extra \
        doc/xz-logo.png \
diff --git a/po/xz.pot-header b/po/xz.pot-header
new file mode 100644 (file)
index 0000000..56272e0
--- /dev/null
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: 0BSD
+#
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) The XZ Utils authors and contributors
+# This file is distributed under the BSD Zero Clause License.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
index 6467538496f01d76f0779b80077d2cb175f2f239..244951ec12605a9000b093423cb7e1d519e987e7 100755 (executable)
@@ -41,3 +41,11 @@ po4a --force --verbose \
        --package-version="$PACKAGE_VERSION" \
        --copyright-holder="The XZ Utils authors and contributors" \
        po4a.conf
+
+# Add the customized POT header which contains the SPDX license
+# identifier and spells out the license name instead of saying
+# "the same license as the XZ Utils package".
+mv xz-man.pot xz-man.pot.tmp
+cat ../po/xz.pot-header > xz-man.pot
+sed '1,/^#$/d' xz-man.pot.tmp >> xz-man.pot
+rm xz-man.pot.tmp