aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2024-02-12 17:09:10 +0200
committerLasse Collin <lasse.collin@tukaani.org>2024-02-14 18:31:16 +0200
commita9f369dd54b05f9ac4e00ead9d765d04fc259868 (patch)
tree7c91294f09891955dfe52cb5362d1a701a01e42c
parentTranslations: po4a/update-po: Add copyright notice to xz-man.pot. (diff)
downloadxz-a9f369dd54b05f9ac4e00ead9d765d04fc259868.tar.xz
Translations: Add custom .pot header with SPDX license identifier.
The same is used for both po/xz.pot and po4a/xz-man.pot.
-rw-r--r--Makefile.am1
-rw-r--r--po/xz.pot-header7
-rwxr-xr-xpo4a/update-po8
3 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index d0548580..b41947e6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
index 00000000..56272e0b
--- /dev/null
+++ b/po/xz.pot-header
@@ -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.
+#
diff --git a/po4a/update-po b/po4a/update-po
index 64675384..244951ec 100755
--- a/po4a/update-po
+++ b/po4a/update-po
@@ -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