Imported upstream version 1.5
[manpages-zh.git] / utils / man2html
blob7b167b5d8ccff738db4beca702fa0128cf2fb147
1 #!/bin/sh
2 # bbbush <bbbush@163.com> 20031123
3 # you need to set LC_ALL to zh_CN.GB18030 before you use this script
4 # to process GB encoded man pages.
6 man2html="/usr/bin/groff -Thtml -mandoc"
7 if [ ! $# -le "1" ] ;then
8 echo "Error! $0 Need exactly 1 arguments and act as a pipe"
9 exit
10 elif [ $# -eq 1 ] ;then
11 $man2html $1 2>/dev/null
12 else
13 $man2html - 2>/dev/null