central version.h. the build system could overwrite it...

git-svn-id: http://tint2.googlecode.com/svn/trunk@353 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-01-15 20:09:35 +00:00
parent 221f2875b3
commit c7d1551dc2
6 changed files with 11 additions and 7 deletions

View File

@@ -31,6 +31,7 @@
#include <Imlib2.h>
#include <signal.h>
#include "version.h"
#include "server.h"
#include "window.h"
#include "config.h"
@@ -59,7 +60,7 @@ void init (int argc, char *argv[])
exit(0);
}
if (!strcmp(argv[i], "-v") || !strcmp(argv[i], "--version")) {
printf("tint2 version 0.8\n");
printf("tint2 version %s\n", VERSION_STRING);
exit(0);
}
if (!strcmp(argv[i], "-c")) {