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.
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 @@
USE_DEFAULT_FORMAT=true
DISCARD_TEMPS=true
+CONFIG_FILES=''
ICONSERVER=''
TEMPBASE=mkhowto-$LOGNAME-$$
@@ -248,6 +249,10 @@
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 @@
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