mirror of
https://github.com/python/cpython.git
synced 2024-11-29 04:44:13 +08:00
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.
This commit is contained in:
parent
b960e7a797
commit
0d6bf0e544
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user