]> granicus.if.org Git - python/commitdiff
When generating the top-level index to the documents, make sure some
authorFred Drake <fdrake@acm.org>
Thu, 18 Nov 1999 20:56:29 +0000 (20:56 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 18 Nov 1999 20:56:29 +0000 (20:56 +0000)
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.

Doc/html/Makefile

index 05f925998de4ed57c73722cda281ccfc40c0b732..0fd19565207e9a73ef32f33ded0aa2eee7625714 100644 (file)
@@ -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