summaryrefslogtreecommitdiff
path: root/devel/gtexinfo/patches
diff options
context:
space:
mode:
authortv <tv>1998-06-18 17:44:38 +0000
committertv <tv>1998-06-18 17:44:38 +0000
commit2796ec017250e0231f4567a9ee498ed0c9c0f6e6 (patch)
treee5f59b4b524b05ef0a4a447383fe3159e28fe36b /devel/gtexinfo/patches
parent2d7ef22e0699c7ca9b83e9c7f1006d3ccc16036e (diff)
downloadpkgsrc-2796ec017250e0231f4567a9ee498ed0c9c0f6e6.tar.gz
Make the .msg files generate .cat files "correctly" for NetBSD:
- don't provide message numbers with no messages - don't escape quotation marks
Diffstat (limited to 'devel/gtexinfo/patches')
-rw-r--r--devel/gtexinfo/patches/patch-af28
1 files changed, 28 insertions, 0 deletions
diff --git a/devel/gtexinfo/patches/patch-af b/devel/gtexinfo/patches/patch-af
new file mode 100644
index 00000000000..32006761d07
--- /dev/null
+++ b/devel/gtexinfo/patches/patch-af
@@ -0,0 +1,28 @@
+--- intl/xopen-msg.sed.orig Thu Jun 18 13:21:49 1998
++++ intl/xopen-msg.sed Thu Jun 18 13:32:08 1998
+@@ -81,6 +81,8 @@
+ G
+ s/^[^\n]*$/& /
+ s/\(.*\)\n\([0-9]*\)/\2 \1/
++# Change escaped quotes into regular quotes.
++ s/\\"/"/g
+ # Clear flag from last substitution.
+ tb
+ # Append the next line.
+@@ -90,12 +92,16 @@
+ s/\(.*\n\)"\(.*\)"/\1\2/
+ # Yes, then branch.
+ ta
++# Comment out if no message exists.
++ s/^\([0-9]* *\n\)/$ \1/
+ P
+ D
+ # Note that `D' includes a jump to the start!!
+ # We found a continuation line. But before printing insert '\'.
+ :a
+ s/\(.*\)\(\n.*\)/\1\\\2/
++# Change escaped quotes into regular quotes.
++ s/\\"/"/g
+ P
+ # We cannot use the sed command `D' here
+ s/.*\n\(.*\)/\1/