aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-10-01 18:02:01 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-10-01 18:19:38 -0700
commit47c357a354447ff2f378fedaf0dcb100ce256381 (patch)
tree092ecf63719bdf7823e9b7bd490e8b918a3b482b
parentb592da41f6b71e884a8576b03cef467001fc3c46 (diff)
Tweak lexicon_filter.in for GNU sed
-rw-r--r--Makefile.in2
-rw-r--r--lexicon_filter.in4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index c4decc58..83bce603 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -414,7 +414,7 @@ lexicon_filter: lexicon.txt lexicon_filter.in
if echo x | $(SED) "/[[:<:]]x/d" 2>/dev/null; then \
WORDBL='[[:<:]]'; WORDBR='[[:>:]]'; \
else \
- WORDBL='\<'; WORDBR='\>'; \
+ WORDBL='\\<'; WORDBR='\\>'; \
fi; \
$(SED) <lexicon.txt >>$@.tmp -n \
-e "s|^\([a-z][a-z][a-z][a-z]\) \([a-z_-]*\)$$|s,$$WORDBL\2$$WORDBR,@\1{\2},g|p" \
diff --git a/lexicon_filter.in b/lexicon_filter.in
index 4ee5f7cc..fc5279ba 100644
--- a/lexicon_filter.in
+++ b/lexicon_filter.in
@@ -530,7 +530,7 @@ s/\n$//g
# characters. Basically the inverse of the 'patternflush' action, with
# additional trailing characters stripped.
x
-/^\<@[^}]*$/ ! {
+/^<@[^}]*$/ ! {
s/[^\<]*//
s/^ *\\\n//g
s/\n *\\//g
@@ -551,7 +551,7 @@ x
}
s/\\\n/\
/
-s/\< \n//
+s/< \n//
s/^[a-z][a-z]* \n//
#.
# Swap the buffers back.