From 5cc0a9b252ac61dc79bf694c96e217e6e0097ec9 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 29 Apr 1999 15:42:19 +0000 Subject: 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. --- Doc/html/.cvsignore | 1 + Doc/html/Makefile | 13 ++++++++++- Doc/html/index.html | 38 ------------------------------- Doc/html/index.html.in | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 74 insertions(+), 39 deletions(-) delete mode 100644 Doc/html/index.html create mode 100644 Doc/html/index.html.in diff --git a/Doc/html/.cvsignore b/Doc/html/.cvsignore index 3e6a28e..0f745f3 100644 --- a/Doc/html/.cvsignore +++ b/Doc/html/.cvsignore @@ -6,5 +6,6 @@ lib mac ref tut +index.html modindex.html @webchecker.pickle 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) diff --git a/Doc/html/index.html b/Doc/html/index.html deleted file mode 100644 index 1a9f23d..0000000 --- a/Doc/html/index.html +++ /dev/null @@ -1,38 +0,0 @@ - - - Python 1.5.2 Documentation - - - -

Python 1.5.2 Documentation

- - - - - diff --git a/Doc/html/index.html.in b/Doc/html/index.html.in new file mode 100644 index 0000000..5db55e9 --- /dev/null +++ b/Doc/html/index.html.in @@ -0,0 +1,61 @@ + + + Python 1.5.2 Documentation + + + + +
+

Python Documentation

+ +

+ Release @RELEASE@ +
+ @DATE@ +

+
+ + + + + + + +
+ + + +
+ + + -- cgit v0.12