put VERSION into a separate file so that we don't have to
authoraland <aland>
Tue, 22 Jan 2008 14:16:37 +0000 (14:16 +0000)
committeraland <aland>
Tue, 22 Jan 2008 14:16:37 +0000 (14:16 +0000)
re-generate configure scripts...

VERSION [new file with mode: 0644]
configure
configure.in

diff --git a/VERSION b/VERSION
new file mode 100644 (file)
index 0000000..ddb56a5
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+2.0.2-pre
index 8ce4d2f..3a5b713 100755 (executable)
--- a/configure
+++ b/configure
@@ -1938,9 +1938,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 ac_config_headers="$ac_config_headers src/include/autoconf.h"
 
 
-RADIUSD_MAJOR_VERSION=2
-RADIUSD_MINOR_VERSION=0.1
-RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
+RADIUSD_VERSION=`cat VERSION`
+RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
+RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
 PACKAGE=freeradius
 
 
index 43230a1..7a3c147 100644 (file)
@@ -27,9 +27,9 @@ AC_CONFIG_HEADER(src/include/autoconf.h)
 AC_REVISION($Revision$)dnl
 
 dnl # The version of the software
-RADIUSD_MAJOR_VERSION=2
-RADIUSD_MINOR_VERSION=0.1
-RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
+RADIUSD_VERSION=`cat VERSION`
+RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
+RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
 PACKAGE=freeradius
 
 dnl #############################################################