summaryrefslogtreecommitdiff
path: root/devel/gtexinfo/patches/patch-af
blob: e6f396cdee50ea425dfba0b069413e28c795aa61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-af,v 1.2 1998/08/07 10:40:25 agc Exp $

--- 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/