]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-l10n: Clarify the license of the POT file.
authorBruno Haible <bruno@clisp.org>
Thu, 2 Jan 2025 14:57:15 +0000 (15:57 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 2 Jan 2025 14:57:15 +0000 (15:57 +0100)
Reported by Simon Josefsson. Suggested by Benno Schulenberg.

* po/Makefile ($(DOMAIN).pot): Replace the license notice line.

ChangeLog
po/Makefile

index ea1a742b40768979d8f94eec737e4c93bdc4652a..8853983620e73c5910f98ea37c21a018cc2aedda 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-01-02  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-l10n: Clarify the license of the POT file.
+       Reported by Simon Josefsson. Suggested by Benno Schulenberg.
+       * po/Makefile ($(DOMAIN).pot): Replace the license notice line.
+
 2025-01-02  Bruno Haible  <bruno@clisp.org>
 
        string-desc, xstring-desc, string-desc-quotearg: Rename functions.
index 26b6ad5b8ede89eb5dffbe0a5e408debc5dc5700..bc2bf63b64d196ac81c0fe2b775a468abd4c19ce 100644 (file)
@@ -13,6 +13,13 @@ $(DOMAIN).pot: force
          --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)' \
          $(XGETTEXT_OPTIONS) \
          `cd .. && find lib '(' -name '*.c' -o -name '*.h' -o -name '*.y' ')' | LC_ALL=C sort`
-       mv $(DOMAIN).po $(DOMAIN).pot
+# We cannot use the usual comment
+# "This file is distributed under the same license as the GNU gnulib package."
+# here, because gnulib is not under a single license. Instead, use a comment
+# "This file is distributed under the LGPLv2+ license."
+# This comment is agreed-upon with the Translation Project.
+       sed -e 's/^# This file is distributed under the same license.*/# This file is distributed under the LGPLv2+ license./' < $(DOMAIN).po > $(DOMAIN).po1
+       mv $(DOMAIN).po1 $(DOMAIN).pot
+       rm -f $(DOMAIN).po
 
 force: