Display razor version number for rpm --version
authorJames Bowes <jbowes@redhat.com>
Tue, 24 Jun 2008 00:20:08 +0000 (20:20 -0400)
committerJames Bowes <jbowes@redhat.com>
Tue, 24 Jun 2008 00:20:08 +0000 (20:20 -0400)
src/rpm.c

index ab3e55a..736ca14 100644 (file)
--- a/src/rpm.c
+++ b/src/rpm.c
@@ -17,6 +17,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
@@ -865,7 +867,7 @@ main(int argc, const char *argv[])
        argc = parse_options(rpm_options, argc, argv);
 
        if (option_version) {
-               printf("razor rpm version hoopla.\n");
+               printf("razor rpm version " VERSION "\n");
                exit(0);
        }