summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-16 13:05:20 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-16 13:05:20 (GMT)
commitaa011411fb489a8f83ee350b59446acf8ef450e7 (patch)
treeb45cbb59b87ba3aff6d4889140327bb59586b1cc /Modules
parent288a60f973803bc72f3bebdaa43bbd5f1b01a556 (diff)
downloadcpython-aa011411fb489a8f83ee350b59446acf8ef450e7.zip
cpython-aa011411fb489a8f83ee350b59446acf8ef450e7.tar.gz
cpython-aa011411fb489a8f83ee350b59446acf8ef450e7.tar.bz2
Automatically insert the date.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/config.c.in15
1 files changed, 13 insertions, 2 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index 4f43241..343f832 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -24,7 +24,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Configurable Python configuration file */
-char version[] = "0.9.3 beta (2)";
+#define VERSION "0.9.4 beta"
+
+#ifdef __DATE__
+#define DATE __DATE__
+#else
+#define DATE "Dec 16 1991"
+#endif
#include <stdio.h>
@@ -32,19 +38,24 @@ char version[] = "0.9.3 beta (2)";
#include <stdwin.h>
#endif
+char version[80];
+
/*ARGSUSED*/
void
initargs(p_argc, p_argv)
int *p_argc;
char ***p_argv;
{
+ sprintf(version, "%s (%s)", VERSION, DATE);
+
#ifdef USE_STDWIN
wargs(p_argc, p_argv);
#endif
if (*p_argc < 2 && isatty(0) && isatty(1))
{
printf("Python %s.\n", version);
- printf("Copyright 1990, 1991 Stichting Mathematisch Centrum, Amsterdam\n");
+ printf(
+"Copyright 1990, 1991, 1992 Stichting Mathematisch Centrum, Amsterdam\n");
}
}