mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-06-03 04:29:35 +00:00
- fixed generation of html man pages; the section number was being
listed twice in the <title> block.
This commit is contained in:
parent
4f4a589bf7
commit
b6b44f7d83
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# Devin Reade, November 1997.
|
# Devin Reade, November 1997.
|
||||||
#
|
#
|
||||||
# $Id: mkhtmlman,v 1.4 1998/01/26 07:13:12 gdr-ftp Exp $
|
# $Id: mkhtmlman,v 1.5 1998/01/27 06:25:34 gdr-ftp Exp $
|
||||||
|
|
||||||
man2html=/usr/local/bin/man2html
|
man2html=/usr/local/bin/man2html
|
||||||
TMPDIR=${TMPDIR:-/tmp}
|
TMPDIR=${TMPDIR:-/tmp}
|
||||||
|
@ -48,6 +48,7 @@ for section in 1 2 3 4 5 6 7 8; do
|
||||||
| grep -v sed/tests` ; do
|
| grep -v sed/tests` ; do
|
||||||
[ "$F" = 00.DUMMY ] && continue;
|
[ "$F" = 00.DUMMY ] && continue;
|
||||||
f=`basename $F`
|
f=`basename $F`
|
||||||
|
f2=`echo $f | perl -pe 's/\.[^\.]+$//;'`
|
||||||
echo "$f" >> $listfile
|
echo "$f" >> $listfile
|
||||||
if [ -f $F'G' ]; then
|
if [ -f $F'G' ]; then
|
||||||
F="$F"G
|
F="$F"G
|
||||||
|
@ -56,7 +57,7 @@ for section in 1 2 3 4 5 6 7 8; do
|
||||||
echo "creating $dest/$f.html"
|
echo "creating $dest/$f.html"
|
||||||
nroff -man $F | $man2html -nodepage | \
|
nroff -man $F | $man2html -nodepage | \
|
||||||
perl -p -e \
|
perl -p -e \
|
||||||
's/<BODY>/<title>GNO: '"$f($section)"'<\/title><body bgcolor=\#ffffff>/;' \
|
's/<BODY>/<title>GNO: '"$f2($section)"'<\/title><body bgcolor=\#ffffff>/;'\
|
||||||
> $dest/$f.html
|
> $dest/$f.html
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user