mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#! /bin/sh
 | 
						|
#
 | 
						|
# Drive HTML generation for a Python manual.
 | 
						|
#
 | 
						|
# This is probably *not* useful outside of the standard Python documentation,
 | 
						|
# but suggestions are welcome and should be sent to <python-docs@python.org>.
 | 
						|
#
 | 
						|
# The first arg is required and is the designation for which manual to build;
 | 
						|
# api, ext, lib, ref, or tut.  All other args are passed on to latex2html.
 | 
						|
 | 
						|
WORKDIR=`pwd`
 | 
						|
cd `dirname $0`/..
 | 
						|
srcdir=`pwd`
 | 
						|
cd $WORKDIR
 | 
						|
 | 
						|
part=$1; shift 1
 | 
						|
 | 
						|
TEXINPUTS=$srcdir/$part:$TEXINPUTS
 | 
						|
export TEXINPUTS
 | 
						|
 | 
						|
if [ -d $part ] ; then
 | 
						|
    rm -f $part/*.html
 | 
						|
fi
 | 
						|
 | 
						|
echo "latex2html -init_file $srcdir/perl/l2hinit.perl -dir $part" \
 | 
						|
 "${1:+$@} $srcdir/$part/$part.tex"
 | 
						|
latex2html \
 | 
						|
 -init_file $srcdir/perl/l2hinit.perl \
 | 
						|
 -address '<hr>Send comments to <a href="mailto:python-docs@python.org">python-docs@python.org</a>.' \
 | 
						|
 -dir $part \
 | 
						|
 ${1:+$@} \
 | 
						|
 $srcdir/$part/$part.tex || exit $?
 | 
						|
 | 
						|
# copy in the stylesheet
 | 
						|
echo "cp $srcdir/html/style.css $part/$part.css"
 | 
						|
cp $srcdir/html/style.css $part/$part.css || exit $?
 | 
						|
 | 
						|
echo "(cd $part; $srcdir/tools/node2label.pl \*.html)"
 | 
						|
cd $part
 | 
						|
$srcdir/tools/node2label.pl *.html || exit $?
 |