1
0
Fork 0

Pattern processing (caret insertion) logic removed from msgfmt and put where it rightfully belongs

master
Mike Gerwitz 2013-03-12 22:30:59 -04:00
parent 0982212464
commit a0b1186d12
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
2 changed files with 2 additions and 2 deletions

2
msgfmt
View File

@ -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)

View File

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