summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2011-01-31 13:40:33 +0000
committerdeva <deva>2011-01-31 13:40:33 +0000
commit3627a1908547f656f8be5dcb94dbb570d41b0c7c (patch)
tree63ad130e8d05f4b3ef3c67f14f45d07601661997
parent7bea0060d1021b2a83aa44bfbce4ae9e2c3defd6 (diff)
Common client/server version file.
-rw-r--r--VERSION1
-rw-r--r--client/client.pro3
-rw-r--r--server/configure.in4
3 files changed, 6 insertions, 2 deletions
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..de0e66e
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+VERSION=2.0.0 \ No newline at end of file
diff --git a/client/client.pro b/client/client.pro
index 509ad9d..d43e28d 100644
--- a/client/client.pro
+++ b/client/client.pro
@@ -16,7 +16,8 @@ debug {
DEFINES+=USE_DEBUG
}
-DEFINES+=VERSION=\\\"2.0.0-r2\\\"
+include(../VERSION)
+DEFINES+=VERSION=\\\"$$VERSION\\\"
win32 {
LIBPATH += lua/lib
diff --git a/server/configure.in b/server/configure.in
index 18d3144..63a7111 100644
--- a/server/configure.in
+++ b/server/configure.in
@@ -1,7 +1,9 @@
# Filename: configure.in
AC_INIT(src/pracrod.cc)
-AM_INIT_AUTOMAKE( pracrod, 2.0.0-beta2 )
+
+VERSION="`cat ../VERSION | cut -d'=' -f2`"
+AM_INIT_AUTOMAKE( pracrod, $VERSION )
dnl ======================
dnl Compile with debug options