From 35467db151782af368abebcaa2fa371c9511c51f Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 13 Jan 2012 12:46:03 +0100 Subject: [PATCH] Indicate that the Suricata version used is a release or a git checkout. --- src/suricata.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/suricata.c b/src/suricata.c index a2c2394513..9669e29af2 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1069,9 +1069,11 @@ int main(int argc, char **argv) break; case 'V': #ifdef REVISION - printf("\nThis is %s version %s (rev %s)\n\n", PROG_NAME, PROG_VER, xstr(REVISION)); + printf("This is %s version %s (rev %s)\n", PROG_NAME, PROG_VER, xstr(REVISION)); +#elif defined RELEASE + printf("This is %s version %s RELEASE\n", PROG_NAME, PROG_VER); #else - printf("\nThis is %s version %s\n\n", PROG_NAME, PROG_VER); + printf("This is %s version %s\n", PROG_NAME, PROG_VER); #endif exit(EXIT_SUCCESS); case 'F': @@ -1085,6 +1087,8 @@ int main(int argc, char **argv) #ifdef REVISION SCLogInfo("This is %s version %s (rev %s)", PROG_NAME, PROG_VER, xstr(REVISION)); +#elif defined RELEASE + SCLogInfo("This is %s version %s RELEASE", PROG_NAME, PROG_VER); #else SCLogInfo("This is %s version %s", PROG_NAME, PROG_VER); #endif