]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added --l2h-config option to add additional initialization files for
authorFred Drake <fdrake@acm.org>
Mon, 15 Feb 1999 16:27:42 +0000 (16:27 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 15 Feb 1999 16:27:42 +0000 (16:27 +0000)
latex2html.  Can be useful in setting up things like the upward
external link for the top of the documents.

Doc/tools/mkhowto.sh

index 88050d58fdc1b76bb7c077c76f40ed12ab7ba988..792f661dd6034f8a2cf45680c342413a93932974 100755 (executable)
@@ -20,6 +20,7 @@ DEFAULT_FORMAT=PDF
 USE_DEFAULT_FORMAT=true
 DISCARD_TEMPS=true
 
+CONFIG_FILES=''
 ICONSERVER=''
 
 TEMPBASE=mkhowto-$LOGNAME-$$
@@ -248,6 +249,10 @@ while [ "$1" ] ; do
            TEXINPUTS=$TOPDIR/paper-a4:$TEXINPUTS
            shift 1
            ;;
+       --l2h-config|--l2h-confi|--l2h-conf|--l2h-con|--l2h-co|--l2h-c|--l2h-|--l2h|--l2)
+           CONFIG_FILES="$CONFIG_FILES $2"
+           shift 2
+           ;;
        --letter|--lette|--lett|--let|--le)
            shift 1
            ;;
@@ -321,6 +326,15 @@ fi
 
 echo '# auxillary init file for latex2html' >$L2H_AUX_INIT_FILE
 echo '# generated by mkhowto.sh -- do not edit' >>$L2H_AUX_INIT_FILE
+for FILE in XXX $CONFIG_FILES ; do
+    if [ ! "$FILE" = XXX ] ; then
+       cat >>$L2H_AUX_INIT_FILE $FILE
+       cat >>$L2H_AUX_INIT_FILE <<EOF
+
+print "\\ninitializing from file: $FILE";
+EOF
+    fi
+done
 if [ "$ICONSERVER" ] ; then
     ICONSERVER="${ICONSERVER%/}"
 fi