- Added version info to compilation process.
This commit is contained in:
parent
b6af2f9dac
commit
343314896b
13
src/main.c
13
src/main.c
@ -83,7 +83,11 @@ const char *progname = "scyther";
|
|||||||
* Note that this is only referenced in the help output of the commandline program.
|
* Note that this is only referenced in the help output of the commandline program.
|
||||||
* \todo Come up with a useful solution for release names.
|
* \todo Come up with a useful solution for release names.
|
||||||
*/
|
*/
|
||||||
const char *releasetag = "alpha2-devel";
|
#ifdef SVNCHANGED
|
||||||
|
const char *releasetag = SVNVERSION " [modified]";
|
||||||
|
#else
|
||||||
|
const char *releasetag = SVNVERSION;
|
||||||
|
#endif
|
||||||
|
|
||||||
//! The main body, as called by the environment.
|
//! The main body, as called by the environment.
|
||||||
int
|
int
|
||||||
@ -248,11 +252,10 @@ main (int argc, char **argv)
|
|||||||
if (version->count > 0)
|
if (version->count > 0)
|
||||||
{
|
{
|
||||||
printf ("'%s' model checker for security protocols.\n", progname);
|
printf ("'%s' model checker for security protocols.\n", progname);
|
||||||
printf ("%s release.\n", releasetag);
|
|
||||||
printf
|
|
||||||
("$Rev$ $Date$\n");
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf ("Compiled with debugging support.\n");
|
printf ("%s, compiled with debugging support.\n", releasetag);
|
||||||
|
#else
|
||||||
|
printf ("%s\n", releasetag);
|
||||||
#endif
|
#endif
|
||||||
printf ("December 2003--, Cas Cremers\n");
|
printf ("December 2003--, Cas Cremers\n");
|
||||||
exitcode = 0;
|
exitcode = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user