Move all code from version.c into config.c

This commit is contained in:
Guido van Rossum 1994-08-19 12:03:04 +00:00
parent 0c7095484e
commit 72824bab44
2 changed files with 37 additions and 2 deletions

View file

@ -65,10 +65,11 @@ $(LIB): $(OBJS)
$(RANLIB) $(LIB)
../python: config.o $(MYLIBS)
$(CC) config.o $(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python
$(CC) config.o \
$(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python
mv python ../python
config.o: config.c Makefile
config.o: config.c Makefile $(MYLIBS)
$(CC) $(CFLAGS) -DPYTHONPATH=\"$(PYTHONPATH)\" -c config.c
clean:

View file

@ -68,6 +68,40 @@ getprogramname()
#endif
/* Python version information */
#include "patchlevel.h"
/* Return the version string. This is constructed from the official
version number (from patchlevel.h), and the current date (if known
to the compiler, else a manually inserted date). */
#define VERSION "%s (%s)"
#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE "Aug 17 1994"
#endif
char *
getversion()
{
static char version[80];
sprintf(version, VERSION, PATCHLEVEL, DATE);
return version;
}
/* Return the copyright string. This is updated manually. */
char *
getcopyright()
{
return "Copyright 1991-1994 Stichting Mathematisch Centrum, Amsterdam";
}
/* Return the initial python search path. This is called once from
initsys() to initialize sys.path.
The environment variable PYTHONPATH is fetched and the default path