JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
compile in version number from configure.ac
authorJason Woofenden <jason@jasonwoof.com>
Wed, 9 Dec 2009 19:44:27 +0000 (14:44 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Wed, 9 Dec 2009 19:44:27 +0000 (14:44 -0500)
Makefile.in
args.c
main.c
vor.desktop.in [changed mode: 0755->0644]
vorconfig.h

index 61d5dfe..be51a0e 100644 (file)
@@ -84,13 +84,13 @@ $(my_objects): vorconfig.h
 
 font.@OBJEXT@: font.h
 
-args.@OBJEXT@: args.h
+args.@OBJEXT@: args.h config.h
 
 dust.@OBJEXT@: globals.h dust.h float.h mt.h
 
 file.@OBJEXT@: file.h common.h
 
-main.@OBJEXT@: args.h common.h dust.h file.h float.h globals.h mt.h rocks.h score.h sprite.h sound.h autopilot.h
+main.@OBJEXT@: args.h common.h config.h dust.h file.h float.h globals.h mt.h rocks.h score.h sprite.h sound.h autopilot.h
 
 mt.@OBJEXT@: mt.h
 
diff --git a/args.c b/args.c
index 4785bc6..2db9f50 100644 (file)
--- a/args.c
+++ b/args.c
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include "args.h"
+#include "config.h"
 #include "vorconfig.h"
 
 // Look and Feel
@@ -30,7 +31,7 @@ short_opt(char c, char *arg)
                case 'f': opt_fullscreen = 1; break;
                case 's': opt_sound = 0; break;
                case 'V':
-                                 printf("Variations on Rockdodger %s\n", VERSION);
+                                 printf("Variations on Rockdodger %s\n", PACKAGE_VERSION);
                                  exit(0);
                case '?':
                case 'h': return 0;
diff --git a/main.c b/main.c
index b7332c5..708a1fa 100644 (file)
--- a/main.c
+++ b/main.c
@@ -32,6 +32,7 @@
 
 #include "args.h"
 #include "common.h"
+#include "config.h"
 #include "vorconfig.h"
 #include "dust.h"
 #include "file.h"
@@ -534,7 +535,7 @@ draw_title_page(void)
        x = (XSIZE-font_width(text))/2 + cos(fadetimer/4.5)*10;
        font_write(x,YSIZE-100 + cos(fadetimer/3)*5,text);
 
-       text = "Version " VERSION;
+       text = "Version " PACKAGE_VERSION;
        x = (XSIZE-font_width(text))/2 + sin(fadetimer/4.5)*10;
        font_write(x,YSIZE-50 + sin(fadetimer/2)*5,text);
 }
old mode 100755 (executable)
new mode 100644 (file)
index 402cbc2..870fe00 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef VOR_CONFIG_H
 #define VOR_CONFIG_H
 
-#define VERSION "0.5.4"
-
 // screen size
 #define XSIZE 640
 #define YSIZE 480