From 47c357a354447ff2f378fedaf0dcb100ce256381 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Wed, 1 Oct 2014 18:02:01 -0700 Subject: Tweak lexicon_filter.in for GNU sed --- Makefile.in | 2 +- lexicon_filter.in | 4 ++-- 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) >$@.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. -- cgit v1.2.3