#! /bin/sh export MANWIDTH=100 # signal() is in section 2 # # the tr's replace wierd dash "\342\200\220" with plain "-" while read name sec do if [ -r "$name.html" ]; then echo "$name.html exists, skipping" continue fi echo "$name" man $sec $name | ./man2html -cgiurlexp '$title . ".html"' | tr -d '\200\220\224\237\302' | tr '\230\231\234\235\250\251\267\342' '""""{}*-' | sed -e 's/-"/"/g' -e 's/-{/\</g' -e 's/-}/\>/g' > "$name.html" done