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.
diff --git a/Doc/tools/mkhowto.sh b/Doc/tools/mkhowto.sh
index e53569b..0fdf09d 100755
--- a/Doc/tools/mkhowto.sh
+++ b/Doc/tools/mkhowto.sh
@@ -32,15 +32,15 @@
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 @@
echo "$2"
echo
fi
-
exit $1
}
@@ -309,7 +308,7 @@
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 @@
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