]> granicus.if.org Git - python/commitdiff
If building HTML and the icons should be served from the same
authorFred Drake <fdrake@acm.org>
Mon, 19 Oct 1998 19:14:42 +0000 (19:14 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 19 Oct 1998 19:14:42 +0000 (19:14 +0000)
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.

Doc/tools/mkhowto.sh

index e53569b6dfa9914ec45c8574f7c8d869cce0e57d..0fdf09dd47c110375084dcc1c21ea125d4181fba 100755 (executable)
@@ -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