From: Bruno Haible Date: Sun, 13 Oct 2024 23:41:49 +0000 (+0200) Subject: po: Add a copyright and license notice to the Rules-quot auxiliary files. X-Git-Tag: v0.23~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=32d202b7f4f15ba3c5d83d68ba7803fc9a95c262;p=thirdparty%2Fgettext.git po: Add a copyright and license notice to the Rules-quot auxiliary files. Reported by Joël Krähemann at . * gettext-runtime/po/quot.sed: Add a copyright and all-permissive license notice. * gettext-runtime/po/boldquot.sed: Likewise. * gettext-runtime/po/en@quot.header: Likewise. * gettext-runtime/po/en@boldquot.header: Likewise. * gettext-runtime/po/insert-header.sed: Use an all-permissive license notice. * gettext-runtime/po/Rules-quot: Likewise. (.insert-header.po-update-en): After running the *.insert-header script, eliminate lines that start with %%. --- diff --git a/gettext-runtime/po/Rules-quot b/gettext-runtime/po/Rules-quot index da987504d..9e1305407 100644 --- a/gettext-runtime/po/Rules-quot +++ b/gettext-runtime/po/Rules-quot @@ -1,9 +1,12 @@ # Special Makefile rules for English message catalogs with quotation marks. # # Copyright (C) 2001-2024 Free Software Foundation, Inc. -# This file, Rules-quot, and its auxiliary files (listed under -# DISTFILES.common.extra1) are free software; the Free Software Foundation -# gives unlimited permission to use, copy, distribute, and modify them. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. +# This file is offered as-is, without any warranty. +# +# Written by Bruno Haible , 2001. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sed Rules-quot @@ -26,7 +29,8 @@ en@boldquot.po-update: en@boldquot.po-update-en LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) $(MSGINIT_OPTIONS) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null \ - | $(SED) -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | \ + | $(SED) -f $$tmpdir/$$lang.insert-header | $(SED) -e '/^%%/d' \ + | $(MSGCONV) -t UTF-8 | \ { case `$(MSGFILTER) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-8] | 0.1[0-8].*) \ $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed \ diff --git a/gettext-runtime/po/boldquot.sed b/gettext-runtime/po/boldquot.sed index 4b937aa51..3c1de54e6 100644 --- a/gettext-runtime/po/boldquot.sed +++ b/gettext-runtime/po/boldquot.sed @@ -1,3 +1,14 @@ +# Sed script that converts quotations, by replacing ASCII quotation marks +# with Unicode quotation marks and highlighting the quotations in bold face. +# +# Copyright (C) 2001 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. +# This file is offered as-is, without any warranty. +# +# Written by Bruno Haible , 2001. +# s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g diff --git a/gettext-runtime/po/en@boldquot.header b/gettext-runtime/po/en@boldquot.header index 506ca9e9e..ac96ad9f3 100644 --- a/gettext-runtime/po/en@boldquot.header +++ b/gettext-runtime/po/en@boldquot.header @@ -1,3 +1,13 @@ +%% A header that gets inserted into message catalogs named en@boldquot.po. +%% +%% Copyright (C) 2001 Free Software Foundation, Inc. +%% This file is free software; the Free Software Foundation +%% gives unlimited permission to copy and/or distribute it, +%% with or without modifications, as long as this notice is preserved. +%% This file is offered as-is, without any warranty. +%% +%% Written by Bruno Haible , 2001. +%% # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) diff --git a/gettext-runtime/po/en@quot.header b/gettext-runtime/po/en@quot.header index 6522f0ce0..287e2e735 100644 --- a/gettext-runtime/po/en@quot.header +++ b/gettext-runtime/po/en@quot.header @@ -1,3 +1,13 @@ +%% A header that gets inserted into message catalogs named en@quot.po. +%% +%% Copyright (C) 2001 Free Software Foundation, Inc. +%% This file is free software; the Free Software Foundation +%% gives unlimited permission to copy and/or distribute it, +%% with or without modifications, as long as this notice is preserved. +%% This file is offered as-is, without any warranty. +%% +%% Written by Bruno Haible , 2001. +%% # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) diff --git a/gettext-runtime/po/insert-header.sed b/gettext-runtime/po/insert-header.sed index ceeebb937..f9534e7ed 100644 --- a/gettext-runtime/po/insert-header.sed +++ b/gettext-runtime/po/insert-header.sed @@ -1,9 +1,12 @@ # Sed script that inserts the file called HEADER before the header entry. # # Copyright (C) 2001 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. +# This file is offered as-is, without any warranty. +# # Written by Bruno Haible , 2001. -# This file is free software; the Free Software Foundation gives -# unlimited permission to use, copy, distribute, and modify it. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following diff --git a/gettext-runtime/po/quot.sed b/gettext-runtime/po/quot.sed index 0122c4631..eb0e08dad 100644 --- a/gettext-runtime/po/quot.sed +++ b/gettext-runtime/po/quot.sed @@ -1,3 +1,14 @@ +# Sed script that converts quotations, by replacing ASCII quotation marks +# with Unicode quotation marks. +# +# Copyright (C) 2001 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. +# This file is offered as-is, without any warranty. +# +# Written by Bruno Haible , 2001. +# s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g