Code

src/fb.c: Use FB_VERSION… rather than VERSION.
authorSebastian Harl <sh@tokkee.org>
Sun, 2 May 2010 21:41:51 +0000 (23:41 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 2 May 2010 21:41:51 +0000 (23:41 +0200)
src/fb.c

index 7ff4ce8a3b34fbba3f072f12530e61548e6953f2..90daf8d8d9368e2770a2f8c8858cb7b1efefc22a 100644 (file)
--- a/src/fb.c
+++ b/src/fb.c
@@ -48,6 +48,7 @@
 #endif /* HAVE_CONFIG_H */
 
 #include "foobar.h"
+#include "fb_features.h"
 
 #if HAVE_LIBGEN_H
 #      include <libgen.h>
@@ -70,14 +71,16 @@ exit_usage(char *name, int status)
 "  -h    display this help and exit\n"
 "  -V    display the version number and copyright\n"
 
-"\nfb "VERSION", http://tokkee.org\n", basename(name));
+"\nfb "FB_VERSION_STRING FB_VERSION_EXTRA", http://tokkee.org\n",
+basename(name));
        exit(status);
 } /* exit_usage */
 
 static void
 exit_version(void)
 {
-       printf("fb version "VERSION", built "BUILD_DATE"\n"
+       printf("fb version "FB_VERSION_STRING FB_VERSION_EXTRA", "
+                       "built "BUILD_DATE"\n"
                        "Copyright (C) 2010 Sebastian Harl <sh@tokkee.org>\n"
 
                        "\nThis is free software under the terms of the GNU GPLv2; see "