Kaydet (Commit) a5de730d authored tarafından Fred Drake's avatar Fred Drake

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.
üst d90ae19b
...@@ -32,15 +32,15 @@ LOGGING='' ...@@ -32,15 +32,15 @@ LOGGING=''
usage() { usage() {
MYNAME=`basename $0` MYNAME=`basename $0`
echo "usage: $MYNAME [options...] file ..."
cat <<EOF cat <<EOF
usage: $MYNAME [options...] file ...
Options specifying formats to build: Options specifying formats to build:
--html HyperText Markup Language --html HyperText Markup Language
--pdf Portable Document Format (default) --pdf Portable Document Format (default)
--ps PostScript --ps PostScript
--dvi "DeVice Indepentent" format from TeX --dvi "DeVice Indepentent" format from TeX
--text ASCII text --text ASCII text (requires lynx)
More than one output format may be specified, or --all. More than one output format may be specified, or --all.
...@@ -65,7 +65,6 @@ EOF ...@@ -65,7 +65,6 @@ EOF
echo "$2" echo "$2"
echo echo
fi fi
exit $1 exit $1
} }
...@@ -309,7 +308,7 @@ if [ "$DEBUGGING" ] ; then ...@@ -309,7 +308,7 @@ if [ "$DEBUGGING" ] ; then
fi fi
echo '# auxillary init file for latex2html' >$L2H_AUX_INIT_FILE 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 if [ "$ICONSERVER" ] ; then
ICONSERVER="${ICONSERVER%/}" ICONSERVER="${ICONSERVER%/}"
fi fi
...@@ -347,6 +346,9 @@ for FILE in $@ ; do ...@@ -347,6 +346,9 @@ for FILE in $@ ; do
HAVE_TEMPS=true HAVE_TEMPS=true
fi fi
build_html $FILE $FILE 2>&1 | tee -a $LOGFILE build_html $FILE $FILE 2>&1 | tee -a $LOGFILE
if [ "$ICONSERVER" = "." ] ; then
cp $TOPDIR/icons/*.gif $FILE/
fi
fi fi
if [ "$BUILD_TEXT" ] ; then if [ "$BUILD_TEXT" ] ; then
if [ ! "$HAVE_TEMPS" ] ; then if [ ! "$HAVE_TEMPS" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment