Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mtg@gnu.org>2016-11-08 23:28:33 -0500
committerMike Gerwitz <mtg@gnu.org>2016-11-08 23:29:47 -0500
commit2b3ffdcb65b9730f24a22e990bb381b2b79804be (patch)
tree02d4fa8af25cddf81f6c49ae17e350b0968e1b32
parent48ceda94bb157ad74e701144991d1821d67ee740 (diff)
downloadrepo2html-master.tar.gz
repo2html-master.tar.bz2
repo2html-master.zip
Add list filterHEADmaster
Basic mechanism for suppressing commits.
-rwxr-xr-xrepo2html19
1 files changed, 11 insertions, 8 deletions
diff --git a/repo2html b/repo2html
index 6196d7a..1bd95d3 100755
--- a/repo2html
+++ b/repo2html
@@ -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