If building HTML and the icons should be served from the same

directory as the HTML (--iconserver .), copy the icons into place.

Clarify that lynx is needed for --text in the usage message.

Fix a typo in a comment.
This commit is contained in:
Fred Drake 1998-10-19 19:14:42 +00:00
parent d90ae19b92
commit a5de730d2d
1 changed files with 6 additions and 4 deletions

View File

@ -32,15 +32,15 @@ LOGGING=''
usage() {
MYNAME=`basename $0`
echo "usage: $MYNAME [options...] file ..."
cat <<EOF
usage: $MYNAME [options...] file ...
Options specifying formats to build:
--html HyperText Markup Language
--pdf Portable Document Format (default)
--ps PostScript
--dvi "DeVice Indepentent" format from TeX
--text ASCII text
--text ASCII text (requires lynx)
More than one output format may be specified, or --all.
@ -65,7 +65,6 @@ EOF
echo "$2"
echo
fi
exit $1
}
@ -309,7 +308,7 @@ if [ "$DEBUGGING" ] ; then
fi
echo '# auxillary init file for latex2html' >$L2H_AUX_INIT_FILE
echo '# generated by mkhowto.sh -- do no edit' >>$L2H_AUX_INIT_FILE
echo '# generated by mkhowto.sh -- do not edit' >>$L2H_AUX_INIT_FILE
if [ "$ICONSERVER" ] ; then
ICONSERVER="${ICONSERVER%/}"
fi
@ -347,6 +346,9 @@ for FILE in $@ ; do
HAVE_TEMPS=true
fi
build_html $FILE $FILE 2>&1 | tee -a $LOGFILE
if [ "$ICONSERVER" = "." ] ; then
cp $TOPDIR/icons/*.gif $FILE/
fi
fi
if [ "$BUILD_TEXT" ] ; then
if [ ! "$HAVE_TEMPS" ] ; then