- Added release information.

This commit is contained in:
ccremers 2006-08-11 17:15:39 +00:00
parent 285a230f67
commit e4bbd59b6e
2 changed files with 7 additions and 0 deletions

1
src/release.h Normal file
View File

@ -0,0 +1 @@
#define RELEASEVERSION "1.0-beta 4"

View File

@ -15,6 +15,8 @@
#include "error.h" #include "error.h"
#include "specialterm.h" #include "specialterm.h"
#include "release.h"
// Program name // Program name
const char *progname = "scyther"; const char *progname = "scyther";
@ -1175,12 +1177,16 @@ switcher (const int process, int index, int commandline)
else else
{ {
printf ("'%s' model checker for security protocols.\n", progname); printf ("'%s' model checker for security protocols.\n", progname);
printf ("Version %s.\n", RELEASEVERSION);
if (switches.expert)
{
#ifdef DEBUG #ifdef DEBUG
printf ("Revision %s, compiled with debugging support.\n", printf ("Revision %s, compiled with debugging support.\n",
SVNVERSION); SVNVERSION);
#else #else
printf ("Revision %s\n", SVNVERSION); printf ("Revision %s\n", SVNVERSION);
#endif #endif
}
printf ("Code by Cas Cremers\n"); printf ("Code by Cas Cremers\n");
exit (0); exit (0);
} }