aboutsummaryrefslogtreecommitdiff
path: root/po4a/update-po
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2024-02-13 13:07:33 +0200
committerLasse Collin <lasse.collin@tukaani.org>2024-02-14 18:31:16 +0200
commitd231d56580175fa040fdd3c6207a58243ce6217b (patch)
tree7cb94f256a6024c501c7c8d67e144e9da30b8671 /po4a/update-po
parentTranslations: Translate also messages of lzmainfo. (diff)
downloadxz-d231d56580175fa040fdd3c6207a58243ce6217b.tar.xz
Translations: Add the man page translators into man page header comment.
It looked odd to only have the original English authors listed in the header comments of the translated files.
Diffstat (limited to 'po4a/update-po')
-rwxr-xr-xpo4a/update-po18
1 files changed, 18 insertions, 0 deletions
diff --git a/po4a/update-po b/po4a/update-po
index 244951ec..2104503f 100755
--- a/po4a/update-po
+++ b/po4a/update-po
@@ -31,6 +31,24 @@ fi
PACKAGE_VERSION=`cd .. && sh build-aux/version.sh` || exit 1
+# Put the author info from the .po files into the header comment of
+# the generated man pages.
+for FILE in *.po
+do
+ printf '%s\n.\\"\n' \
+'PO4A-HEADER: position=^\.\\" Author; mode=after; beginboundary=^\.\\"$' \
+ > "$FILE.authors"
+ sed '
+ /^[^#]/,$d
+ /: 0BSD$/d
+ /BSD Zero Clause License/d
+ /distributed under the same license/d
+ /in the public domain/d
+ /^#$/d
+ s/^#/.\\"/
+ ' "$FILE" >> "$FILE.authors"
+done
+
# Using --force to get up-to-date version numbers in the output files
# when nothing else has changed. This makes it slower but it's fine
# as long as this isn't run every time when "make" is run at the