diff options
author | Russ Cox <rsc@swtch.com> | 2008-12-06 16:34:33 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-12-06 16:34:33 -0800 |
commit | 3d52c7487fea9190d8ec0ae3afcfa5ac40ee3382 (patch) | |
tree | a36108814f914e9d66f4cbfa16057f5fab352955 /dist | |
parent | 60cbcf86349c08ebbce7e20090413bb73bab2013 (diff) | |
download | plan9port-3d52c7487fea9190d8ec0ae3afcfa5ac40ee3382.tar.gz plan9port-3d52c7487fea9190d8ec0ae3afcfa5ac40ee3382.tar.bz2 plan9port-3d52c7487fea9190d8ec0ae3afcfa5ac40ee3382.zip |
manweb: avoid null concatenation
Diffstat (limited to 'dist')
-rwxr-xr-x | dist/manweb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dist/manweb b/dist/manweb index 32e90298..ce455dad 100755 --- a/dist/manweb +++ b/dist/manweb @@ -32,6 +32,10 @@ for(i in */INDEX) @{ echo '<tr height=1><td colspan=2 bgcolor=#cccccc>' echo '<tr height=1><td>' } + if(~ $#name 0) + name=XXX-name-$j-XXX + if(~ $#n 0) + n=XXX-n-$j-XXX echo -n '<tr><td valign=top><a href="'$name'.html">'$name'('$n')</a><td>' sed -n ' /SH *NAM/,/SH/{ |