Pattern processing (caret insertion) logic removed from msgfmt and put where it rightfully belongs
parent
0982212464
commit
a0b1186d12
2
msgfmt
2
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
|
# hashcache is cleared before the run, then this is likely to occur for
|
||||||
# every cref)
|
# every cref)
|
||||||
if ( result == "" && cref_errlog && id ) {
|
if ( result == "" && cref_errlog && id ) {
|
||||||
printf "^" id >cref_errlog
|
printf id >cref_errlog
|
||||||
}
|
}
|
||||||
|
|
||||||
gsub(/\[cref:.*?\]/, url_root result)
|
gsub(/\[cref:.*?\]/, url_root result)
|
||||||
|
|
|
@ -125,7 +125,7 @@ listcache=.list
|
||||||
# considered to be problem refs)
|
# considered to be problem refs)
|
||||||
export cref_errlog=.cref-bad
|
export cref_errlog=.cref-bad
|
||||||
>"$cref_errlog"
|
>"$cref_errlog"
|
||||||
grep -f"$cref_errlog_first" "$listcache" \
|
grep -f<( sed 's/^/\^/' "$cref_errlog_first" ) "$listcache" \
|
||||||
| ./processor "$repotype" "$path_out" 2> >( _reout )
|
| ./processor "$repotype" "$path_out" 2> >( _reout )
|
||||||
|
|
||||||
# if any invalid crefs remain, then they're bad
|
# if any invalid crefs remain, then they're bad
|
||||||
|
|
Loading…
Reference in New Issue