aboutsummaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-18 18:17:00 +0000
committerrsc <devnull@localhost>2005-01-18 18:17:00 +0000
commitf3e872014e3079ec4a9fa153a9eea610149adc37 (patch)
tree7a953004d3508a1039e4e0d1b0017eff3a3536be /dist
parent668b32b76c29d2186958eefab81b0dac9258f836 (diff)
downloadplan9port-f3e872014e3079ec4a9fa153a9eea610149adc37.tar.gz
plan9port-f3e872014e3079ec4a9fa153a9eea610149adc37.tar.bz2
plan9port-f3e872014e3079ec4a9fa153a9eea610149adc37.zip
silence useless errors
Diffstat (limited to 'dist')
-rwxr-xr-xdist/manweb15
1 files changed, 12 insertions, 3 deletions
diff --git a/dist/manweb b/dist/manweb
index b813385a..0ffbc481 100755
--- a/dist/manweb
+++ b/dist/manweb
@@ -4,7 +4,16 @@ verbose=no
if(~ $1 -v)
verbose=yes
-path=($PLAN9/bin $path)
+fn silencer {
+ switch($verbose){
+ case no
+ cat >/dev/null
+ case yes
+ cat
+ }
+}
+
+. 9.rc
cd $PLAN9/man
# rm -f */*.html
@@ -13,7 +22,7 @@ for(i in */INDEX) @{
cat $PLAN9/dist/manindextop.html | sed 's/NNN/'$n'/g'
cd `{basename -d $i}
# complicated sort order: want 9p.3, 9p-cmdbuf.3, 9pclient.3
- for (j in `{ls [a-z0-9:]*.[0-9]* | sed 's/[.\-]/ &/g;s/\./ &/g' | sort | tr -d ' '}){
+ for (j in `{ls [a-z0-9:]*.[0-9]* >[2]/dev/null | sed 's/[.\-]/ &/g;s/\./ &/g' | sort | tr -d ' '}){
n=`{grep '^\.TH' $j | sed 1q | awk '{print $3}'}
name=`{echo $j | sed 's/\..*//'}
if(~ $name 0intro)
@@ -58,7 +67,7 @@ for (i in */[~.]*.[0-9]*){
if(~ $p 0intro)
p=intro
if(~ $verbose yes) echo $d/$p
- troff -manhtml $i | troff2html -t 'Plan 9 from User Space'>/tmp/manweb.html
+ troff -manhtml $i | troff2html -t 'Plan 9 from User Space'>/tmp/manweb.html |[2] silencer
{
sed '/<!-- TRAILER -->/q' /tmp/manweb.html
cat $PLAN9/dist/mantrailer.html