From: Fred Drake Date: Thu, 2 Apr 1998 15:37:13 +0000 (+0000) Subject: Added --split for AMK; control split level of the HTML output. Use --split 1 X-Git-Tag: v1.5.1~270 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac8f91ada4dd32b2c87b7804c9f8b3481e0b0f30;p=python Added --split for AMK; control split level of the HTML output. Use --split 1 to create a single HTML file. Added --help. --- diff --git a/Doc/tools/mkhowto.sh b/Doc/tools/mkhowto.sh index e3a0b7f4cf..417ba323ab 100755 --- a/Doc/tools/mkhowto.sh +++ b/Doc/tools/mkhowto.sh @@ -4,6 +4,8 @@ MYDIR=`dirname $0` WORKDIR=`pwd` cd $MYDIR MYDIR=`pwd` +cd .. +TOPDIR=`pwd` cd $WORKDIR # DEFAULT_FORMAT must be upper case... @@ -11,6 +13,9 @@ DEFAULT_FORMAT=PDF USE_DEFAULT_FORMAT=true DISCARD_TEMPS=true +HTML_SPLIT_LEVEL='' +L2H_INIT_FILE=$TOPDIR/perl/l2hinit.perl + # This is needed to support kpathsea based TeX installations. Others are # not supported. ;-) TEXINPUTS=`dirname $MYDIR`/texinputs:$TEXINPUTS @@ -20,20 +25,60 @@ LOGFILE=/usr/tmp/mkhowto-$LOGNAME-$$.how LOGGING='' usage() { - echo "usage: $0 [options...] file ..." - exit 2 + MYNAME=`basename $0` + echo "usage: $MYNAME [options...] file ..." + cat <