3
# Take a man tree and make an html tree out of it
10
bwfid) localeo=reo1 ;;
11
chfid) localeo=neo1 ;;
12
hkfid) localeo=teo1 ;;
13
lnfid) localeo=leo1 ;;
14
nyfid) localeo=neo1 ;;
15
psfid) localeo=leo1 ;;
16
sffid) localeo=neo1 ;;
17
tkfid) localeo=teo1 ;;
20
sections="{1,2,3,4,5,6,7,8}"
22
#to=/u/eo/repository/system/unix/man
29
newname="${newbase}.1"
31
while [ -a "${newname}" ]
33
newname=$newbase"."$dis
38
while getopts f:t:l:is:v c
45
s) sections=$OPTARG ;;
55
print "localeo: $localeo"
56
print "sections: $sections"
65
if [ ! "${indexonly}" ]
67
print "Processing the man pages ..."
68
for i in man${sections}/*.man
75
bn="$(basename $i .man)"
83
print "Collision - ${oldname} will be stored as ${name}"
85
eqn $i | tbl | nroff -man | rman -f HTML | sed -e "s/MS_LOCAL_HOST/${localeo}/g" > ${name}
89
print "Building the index.html files ..."
91
for i in man${sections}
104
echo '<ul>' > ../new.html
107
bn="$(basename $j .html)"
113
# get more interesting name for the link labels
114
synl="$(egrep -A 1 '<B>.*</B> - .*' $j |sed -e 's/<B>//g' -e 's/<\/B>//g')"
115
# echo "### synl = $synl"
116
synname="$(echo $synl |cut -d' ' -f1)"
117
synopse="$(echo $synl |cut -d' ' -f3-100)"
119
print "<li> <a href=$j>$synname</a> - $synopse" >> ../new.html
121
echo '</ul>' >> ../new.html
122
mv ../new.html index.html