]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
po: Assume a 'sed' that supports '#' for introducing comments.
authorBruno Haible <bruno@clisp.org>
Sun, 13 Oct 2024 20:36:41 +0000 (22:36 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 Oct 2024 22:40:05 +0000 (00:40 +0200)
This is standardized in POSIX since POSIX:2001 (= SUSv3).
It is supported on all platforms that I could test:
GNU, macOS 10.5, FreeBSD 5, NetBSD 7, OpenBSD 6, AIX 7, Solaris 10 and 11,
busybox (2019).

* gettext-runtime/po/insert-header.sed: Renamed from
gettext-runtime/po/insert-header.sin.
* gettext-runtime/po/Rules-quot (DISTFILES.common.extra1): Update.
(en@quot.insert-header, en@boldquot.insert-header): Use insert-header.sed
instead of insert-header.sin.
* autogen.sh: Update.
* Makefile.am (distcheck-hook): Update.
* gettext-tools/examples/hello-*/autogen.sh: Update.
* gettext-tools/doc/gettext.texi (po/LINGUAS): Update.

15 files changed:
.gitignore
Makefile.am
autogen.sh
gettext-runtime/po/Rules-quot
gettext-runtime/po/insert-header.sed [moved from gettext-runtime/po/insert-header.sin with 100% similarity]
gettext-tools/doc/gettext.texi
gettext-tools/examples/hello-c++-gnome/autogen.sh
gettext-tools/examples/hello-c++-kde/autogen.sh
gettext-tools/examples/hello-c++/autogen.sh
gettext-tools/examples/hello-c++20/autogen.sh
gettext-tools/examples/hello-c-gnome/autogen.sh
gettext-tools/examples/hello-c-gnome3/autogen.sh
gettext-tools/examples/hello-c/autogen.sh
gettext-tools/examples/hello-objc-gnome/autogen.sh
gettext-tools/examples/hello-objc/autogen.sh

index 6454ba76c9327108f09490213094c1e6965c6ccc..cf198e23e000ed41ea7053b76861e8f74c7327ff 100644 (file)
 /gettext-tools/po/boldquot.sed
 /gettext-tools/po/en@boldquot.header
 /gettext-tools/po/en@quot.header
-/gettext-tools/po/insert-header.sin
+/gettext-tools/po/insert-header.sed
 /gettext-tools/po/quot.sed
 /gettext-tools/po/remove-potcdate.sin
 
index ceddff526f23573ce2ed4dfd8b2cf39913d2d833..3396d202fa83320d959b4be157469c82ad081b7e 100644 (file)
@@ -70,7 +70,7 @@ distcheck-hook:
        cmp -s $(srcdir)/gettext-runtime/po/quot.sed $(srcdir)/gettext-tools/po/quot.sed
        cmp -s $(srcdir)/gettext-runtime/po/en@quot.header $(srcdir)/gettext-tools/po/en@quot.header
        cmp -s $(srcdir)/gettext-runtime/po/en@boldquot.header $(srcdir)/gettext-tools/po/en@boldquot.header
-       cmp -s $(srcdir)/gettext-runtime/po/insert-header.sin $(srcdir)/gettext-tools/po/insert-header.sin
+       cmp -s $(srcdir)/gettext-runtime/po/insert-header.sed $(srcdir)/gettext-tools/po/insert-header.sed
        cmp -s $(srcdir)/gettext-runtime/po/remove-potcdate.sin $(srcdir)/gettext-tools/po/remove-potcdate.sin
        cmp -s $(srcdir)/gettext-runtime/po/remove-potcdate.sin $(srcdir)/gettext-tools/examples/po/remove-potcdate.sin
        cmp -s $(srcdir)/gettext-runtime/m4/build-to-host.m4 $(srcdir)/gettext-tools/gnulib-m4/build-to-host.m4
index 1641d74ef2dc6771213435f080bf149e4781cdb5..5cbdd0da7fe4aae6364906644d08244ab448e9f6 100755 (executable)
@@ -540,7 +540,7 @@ cp -p gettext-runtime/po/boldquot.sed gettext-tools/po/boldquot.sed
 cp -p gettext-runtime/po/quot.sed gettext-tools/po/quot.sed
 cp -p gettext-runtime/po/en@quot.header gettext-tools/po/en@quot.header
 cp -p gettext-runtime/po/en@boldquot.header gettext-tools/po/en@boldquot.header
-cp -p gettext-runtime/po/insert-header.sin gettext-tools/po/insert-header.sin
+cp -p gettext-runtime/po/insert-header.sed gettext-tools/po/insert-header.sed
 cp -p gettext-runtime/po/remove-potcdate.sin gettext-tools/po/remove-potcdate.sin
 
 echo "$0: generating configure in gettext-tools..."
index 18c024bf45ae303dd97f9cfb5e0bd807a9cb2282..da987504d52d40fefbf49b007b9034c4f72e88d5 100644 (file)
@@ -1,11 +1,11 @@
 # Special Makefile rules for English message catalogs with quotation marks.
 #
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
+# 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.
 
-DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
+DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sed Rules-quot
 
 .SUFFIXES: .insert-header .po-update-en
 
@@ -51,11 +51,11 @@ en@boldquot.po-update: en@boldquot.po-update-en
          rm -f $$tmpdir/$$lang.new.po; \
        fi
 
-en@quot.insert-header: insert-header.sin
-       sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
+en@quot.insert-header: insert-header.sed
+       sed -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sed > en@quot.insert-header
 
-en@boldquot.insert-header: insert-header.sin
-       sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
+en@boldquot.insert-header: insert-header.sed
+       sed -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sed > en@boldquot.insert-header
 
 mostlyclean: mostlyclean-quot
 mostlyclean-quot:
index c62071bd9f9a5e97bf88808af472a7e76dbd018f..a2cbb3c11fa566a7e8f094220e7227c3244c2ac6 100644 (file)
@@ -8909,7 +8909,7 @@ a terminal emulator which supports the VT100 escape sequences (such as
 These extra message catalogs @samp{en@@quot} and @samp{en@@boldquot}
 are constructed automatically, not by translators; to support them, you
 need the files @file{Rules-quot}, @file{quot.sed}, @file{boldquot.sed},
-@file{en@@quot.header}, @file{en@@boldquot.header}, @file{insert-header.sin}
+@file{en@@quot.header}, @file{en@@boldquot.header}, @file{insert-header.sed}
 in the @file{po/} directory.  You can copy them from GNU gettext's @file{po/}
 directory; they are also installed by running @code{gettextize}.
 
index 7fc2283798d5023cdc164ebc207506a59446260c..cf1a97eec3ac424bd16d58e77382be46b3015993 100755 (executable)
@@ -10,7 +10,7 @@ rm po/Rules-quot
 rm po/boldquot.sed
 rm po/en@boldquot.header
 rm po/en@quot.header
-rm po/insert-header.sin
+rm po/insert-header.sed
 rm po/quot.sed
 
 aclocal -I m4
index ded134bcec7a712fe859ba20039fa45d09cedb4e..75460adc89debdbbc1a53d44e926c599c4fa8dba 100755 (executable)
@@ -33,7 +33,7 @@ rm po/Rules-quot
 rm po/boldquot.sed
 rm po/en@boldquot.header
 rm po/en@quot.header
-rm po/insert-header.sin
+rm po/insert-header.sed
 rm po/quot.sed
 
 sh admin/cvs.sh cvs
index 0332a9b2187ea8a126f01eabb44fe6771dbeb663..21904ca9f990e376f4a22d27da4912325fc9fed0 100755 (executable)
@@ -31,7 +31,7 @@ rm po/Rules-quot
 rm po/boldquot.sed
 rm po/en@boldquot.header
 rm po/en@quot.header
-rm po/insert-header.sin
+rm po/insert-header.sed
 rm po/quot.sed
 
 aclocal -I m4
index 0332a9b2187ea8a126f01eabb44fe6771dbeb663..21904ca9f990e376f4a22d27da4912325fc9fed0 100755 (executable)
@@ -31,7 +31,7 @@ rm po/Rules-quot
 rm po/boldquot.sed
 rm po/en@boldquot.header
 rm po/en@quot.header
-rm po/insert-header.sin
+rm po/insert-header.sed
 rm po/quot.sed
 
 aclocal -I m4
index 7fc2283798d5023cdc164ebc207506a59446260c..cf1a97eec3ac424bd16d58e77382be46b3015993 100755 (executable)
@@ -10,7 +10,7 @@ rm po/Rules-quot
 rm po/boldquot.sed
 rm po/en@boldquot.header
 rm po/en@quot.header
-rm po/insert-header.sin
+rm po/insert-header.sed
 rm po/quot.sed
 
 aclocal -I m4
index 7fc2283798d5023cdc164ebc207506a59446260c..cf1a97eec3ac424bd16d58e77382be46b3015993 100755 (executable)
@@ -10,7 +10,7 @@ rm po/Rules-quot
 rm po/boldquot.sed
 rm po/en@boldquot.header
 rm po/en@quot.header
-rm po/insert-header.sin
+rm po/insert-header.sed
 rm po/quot.sed
 
 aclocal -I m4
index 78b15039582337a23097d2a4543c0967c3c2c1ac..1ae12f1bee2e1bc4551404250e4072ca70fccc71 100755 (executable)
@@ -31,7 +31,7 @@ rm po/Rules-quot
 rm po/boldquot.sed
 rm po/en@boldquot.header
 rm po/en@quot.header
-rm po/insert-header.sin
+rm po/insert-header.sed
 rm po/quot.sed
 
 aclocal -I m4
index 7fc2283798d5023cdc164ebc207506a59446260c..cf1a97eec3ac424bd16d58e77382be46b3015993 100755 (executable)
@@ -10,7 +10,7 @@ rm po/Rules-quot
 rm po/boldquot.sed
 rm po/en@boldquot.header
 rm po/en@quot.header
-rm po/insert-header.sin
+rm po/insert-header.sed
 rm po/quot.sed
 
 aclocal -I m4
index 78b15039582337a23097d2a4543c0967c3c2c1ac..1ae12f1bee2e1bc4551404250e4072ca70fccc71 100755 (executable)
@@ -31,7 +31,7 @@ rm po/Rules-quot
 rm po/boldquot.sed
 rm po/en@boldquot.header
 rm po/en@quot.header
-rm po/insert-header.sin
+rm po/insert-header.sed
 rm po/quot.sed
 
 aclocal -I m4