diff options
author | Fred Drake <fdrake@acm.org> | 1999-11-18 20:56:29 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-11-18 20:56:29 (GMT) |
commit | 0d6bf0e544a02c049c4626b87900819ec0a98d38 (patch) | |
tree | 51cb30313ee6906ba6a81e639bf662d0cf1d58f9 /Doc | |
parent | b960e7a797a694df0ec8ca63fa1e712ed722d1fc (diff) | |
download | cpython-0d6bf0e544a02c049c4626b87900819ec0a98d38.zip cpython-0d6bf0e544a02c049c4626b87900819ec0a98d38.tar.gz cpython-0d6bf0e544a02c049c4626b87900819ec0a98d38.tar.bz2 |
When generating the top-level index to the documents, make sure some
oddball things from the LaTeX get translated to rational values. This
is mostly to keep things from looking broken in a development tree
when they're not.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/html/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/html/Makefile b/Doc/html/Makefile index 05f9259..0fd1956 100644 --- a/Doc/html/Makefile +++ b/Doc/html/Makefile @@ -139,9 +139,11 @@ distclean realclean clobber: clean BOILERPLATE=$(TOPDIR)/texinputs/boilerplate.tex index.html: index.html.in $(BOILERPLATE) - REL=`grep '\\release{' $(BOILERPLATE) | sed 's/.*\\release{\(.*\)}.*$$/\1/'` ; \ + REL=`grep '\\release{' $(BOILERPLATE) | sed 's/.*\\release{\(.*\)}.*$$/\1/'`; \ + REL=`echo "$$REL" | sed 's/[$$]//g'`; \ sed "s/@RELEASE@/$$REL/g" $< >TEMP DATE=`grep '\\date{' $(BOILERPLATE) | sed 's/.*\\date{\(.*\)}.*$$/\1/'` ; \ + if [ "$$DATE" = '\today' ] ; then DATE=`date '+%B %e, %Y'`;fi;\ sed "s/@DATE@/$$DATE/g" TEMP >$@ rm -f TEMP |