diff options
author | Fred Drake <fdrake@acm.org> | 1999-02-15 16:27:42 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-02-15 16:27:42 (GMT) |
commit | 5d59d3df7f308df4a728755a6e7500e13b0a80b1 (patch) | |
tree | b7da0c11d486a260d34db95cc558d920b0588f93 | |
parent | ec9fbe90be9dc7f0cd4c340c33245a8e8178178d (diff) | |
download | cpython-5d59d3df7f308df4a728755a6e7500e13b0a80b1.zip cpython-5d59d3df7f308df4a728755a6e7500e13b0a80b1.tar.gz cpython-5d59d3df7f308df4a728755a6e7500e13b0a80b1.tar.bz2 |
Added --l2h-config option to add additional initialization files for
latex2html. Can be useful in setting up things like the upward
external link for the top of the documents.
-rwxr-xr-x | Doc/tools/mkhowto.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/tools/mkhowto.sh b/Doc/tools/mkhowto.sh index 88050d5..792f661 100755 --- a/Doc/tools/mkhowto.sh +++ b/Doc/tools/mkhowto.sh @@ -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 |