From: Fred Drake Date: Tue, 17 Jul 2001 16:46:14 +0000 (+0000) Subject: Script to re-write @FOO@-style marks with values, initializing the X-Git-Tag: v2.2a3~1107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3cae66bdbcbc46d1c7a522a2a48c8c23ba199b76;p=thirdparty%2FPython%2Fcpython.git Script to re-write @FOO@-style marks with values, initializing the replacement for @DATE@ from a TeX file containing a \date{...} mark (such as texinputs/boilerplate.tex). This will be used to re-write the html/index.html.in file instead of a combination of grep, date, and sed -- this is more portable to non-Unix platforms. This solves part of the problem reported in SF patch #429611, but does not use the suggested patch. --- diff --git a/Doc/tools/rewrite.py b/Doc/tools/rewrite.py new file mode 100644 index 000000000000..e822bf5bd2d9 --- /dev/null +++ b/Doc/tools/rewrite.py @@ -0,0 +1,55 @@ +"""Simple script to replace @DATE@ and friends with real information. + +Usage: rewrite.py boilerplate.tex [VAR=value] ...