From a0b1186d124778eec946f097fdbf6b419123c0fc Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 12 Mar 2013 22:30:59 -0400 Subject: [PATCH] Pattern processing (caret insertion) logic removed from msgfmt and put where it rightfully belongs --- msgfmt | 2 +- repo2html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/msgfmt b/msgfmt index 4a97cee..042a35f 100755 --- a/msgfmt +++ b/msgfmt @@ -60,7 +60,7 @@ awk -vid="$id" -vurl_root="$url_root" -vcref_errlog="$cref_errlog" ' # hashcache is cleared before the run, then this is likely to occur for # every cref) if ( result == "" && cref_errlog && id ) { - printf "^" id >cref_errlog + printf id >cref_errlog } gsub(/\[cref:.*?\]/, url_root result) diff --git a/repo2html b/repo2html index dbee0ff..8534052 100755 --- a/repo2html +++ b/repo2html @@ -125,7 +125,7 @@ listcache=.list # considered to be problem refs) export cref_errlog=.cref-bad >"$cref_errlog" -grep -f"$cref_errlog_first" "$listcache" \ +grep -f<( sed 's/^/\^/' "$cref_errlog_first" ) "$listcache" \ | ./processor "$repotype" "$path_out" 2> >( _reout ) # if any invalid crefs remain, then they're bad