1
0
Fork 0

Add list filter

Basic mechanism for suppressing commits.
master
Mike Gerwitz 2016-11-08 23:28:33 -05:00
parent 48ceda94bb
commit 2b3ffdcb65
Signed by: mikegerwitz
GPG Key ID: 8C917B7F5DC51BA2
1 changed files with 11 additions and 8 deletions

View File

@ -97,7 +97,7 @@ raw_tpl=
# configuration (note that this setup in conjunction with the below defaults
# imply that they can be passed in as environment variables as an alternative to
# options)
while getopts t:d:c:e:l:f:i:o:u:C:E:R:T:U: opt; do
while getopts t:d:c:e:l:f:F:i:o:u:C:E:R:T:U: opt; do
case "$opt" in
t) title="$OPTARG";;
d) desc="$OPTARG";;
@ -105,6 +105,7 @@ while getopts t:d:c:e:l:f:i:o:u:C:E:R:T:U: opt; do
e) html_ext="$OPTARG";;
l) license="$OPTARG";;
f) msgfmt="$path_root/$OPTARG";;
F) listfilter="$path_root/$OPTARG";;
i)
do_raw=1
raw_tpl="$OPTARG"
@ -177,13 +178,15 @@ export cref_errlog="$cref_errlog_first"
# reference and further processing); note that we clear the cref_errlog for the
# RSS feed so that we do not get duplicates
listcache="$path_root/.clist"
"$repotype"/list | tee \
>( cref_errlog= ./rss "$repotype" "$url_root" "$rss_count" \
> "$path_out/rss.xml" \
2> >( _rssout )
) \
"$listcache" \
| ./processor "$repotype" "$path_out" 2> >( _htmlout )
"$repotype"/list \
| grep -vf "${listfilter:-/dev/null}" \
| tee \
>( cref_errlog= ./rss "$repotype" "$url_root" "$rss_count" \
> "$path_out/rss.xml" \
2> >( _rssout )
) \
"$listcache" \
| ./processor "$repotype" "$path_out" 2> >( _htmlout )
# re-process cref errors (but only once; any errors at this point will be
# considered to be problem refs) TODO: RSS; note that we redirect all output to