From 3cae66bdbcbc46d1c7a522a2a48c8c23ba199b76 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 17 Jul 2001 16:46:14 +0000 Subject: 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. --- Doc/tools/rewrite.py | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Doc/tools/rewrite.py diff --git a/Doc/tools/rewrite.py b/Doc/tools/rewrite.py new file mode 100644 index 0000000..e822bf5 --- /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] ...