diff options
author | Fred Drake <fdrake@acm.org> | 1999-04-29 15:42:19 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-04-29 15:42:19 (GMT) |
commit | 5cc0a9b252ac61dc79bf694c96e217e6e0097ec9 (patch) | |
tree | 2b004fba7f40feecc4ef61783a5f8e45ce590846 /Doc/html/Makefile | |
parent | fe1e207841ab44f17ec06ed37f7e789d51fb5512 (diff) | |
download | cpython-5cc0a9b252ac61dc79bf694c96e217e6e0097ec9.zip cpython-5cc0a9b252ac61dc79bf694c96e217e6e0097ec9.tar.gz cpython-5cc0a9b252ac61dc79bf694c96e217e6e0097ec9.tar.bz2 |
Generate index.html from index.html.in. This avoids having to modify the
index to update the version number; boilerplate.tex remains the only document
source for this information.
Diffstat (limited to 'Doc/html/Makefile')
-rw-r--r-- | Doc/html/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Doc/html/Makefile b/Doc/html/Makefile index 44c5c2e..11c3d45 100644 --- a/Doc/html/Makefile +++ b/Doc/html/Makefile @@ -40,7 +40,7 @@ COMMONPERL= $(TOPDIR)/perl/manual.perl \ $(TOPDIR)/perl/l2hinit.perl -all: $(INDEXFILES) modindex.html +all: $(INDEXFILES) index.html modindex.html .PHONY: api ext lib mac ref tut @@ -59,6 +59,17 @@ modindex.html: lib/lib.html mac/mac.html $(TOOLSDIR)/mkmodindex --address $(PYTHONDOCS) \ lib/modindex.html mac/modindex.html +# This is really ugly, but we're not dependent on $(RELEASE), which isn't +# defined here. It also maintains the proper dependency on boilerplate.tex. + +BOILERPLATE=$(TOPDIR)/texinputs/boilerplate.tex +index.html: index.html.in $(BOILERPLATE) + REL=`grep '\\release{' $(BOILERPLATE) | sed 's/.*\\release{\(.*\)}.*$$/\1/'` ; \ + sed "s/@RELEASE@/$$REL/g" $< >TEMP + DATE=`grep '\\date{' $(BOILERPLATE) | sed 's/.*\\date{\(.*\)}.*$$/\1/'` ; \ + sed "s/@DATE@/$$DATE/g" TEMP >$@ + rm -f TEMP + api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX) $(MKHTML) api $(L2HARGS) |