diff options
author | unknown <kent@kent-amd64.(none)> | 2008-02-26 18:21:45 +0100 |
---|---|---|
committer | unknown <kent@kent-amd64.(none)> | 2008-02-26 18:21:45 +0100 |
commit | 7084d02ea914d0d3d34eed57601af674fb021d86 (patch) | |
tree | 3f3e45141b4ca70109dd83644eb7d451e159743d /configure.in | |
parent | 12ae9048a7d02727fff87070482955b10f12a258 (diff) | |
parent | cd0d8fd8aadafc8a462fab8b08979f64928b7164 (diff) | |
download | mariadb-git-7084d02ea914d0d3d34eed57601af674fb021d86.tar.gz |
Merge mysql.com:/home/kent/bk/build/mysql-4.1-build
into mysql.com:/home/kent/bk/build/mysql-5.0-build
ndb/src/common/util/SocketServer.cpp:
Auto merged
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 64c86d60e34..73bbbc2161b 100644 --- a/configure.in +++ b/configure.in @@ -28,9 +28,19 @@ NDB_VERSION_STATUS="" # Set all version vars based on $VERSION. How do we do this more elegant ? # Remember that regexps needs to quote [ and ] since this is run through m4 -MYSQL_NO_DASH_VERSION=`echo $VERSION | sed -e "s|[[a-z]]*-.*$||"` -MYSQL_BASE_VERSION=`echo $MYSQL_NO_DASH_VERSION | sed -e "s|\.[[^.]]*$||"` -MYSQL_VERSION_ID=`echo $MYSQL_NO_DASH_VERSION | sed -e 's|[[^0-9.]].*$||;s|$|.|' | sed -e 's/[[^0-9.]]//g; s/\./ /g; s/ \([[0-9]]\) / 0\\1 /g; s/ //g'` +# We take some made up examples +# +# VERSION 5.1.40sp1-alpha 5.0.34a +# MYSQL_NO_DASH_VERSION 5.1.40sp1 5.0.34a +# MYSQL_NUMERIC_VERSION 5.1.40 5.0.34 +# MYSQL_BASE_VERSION 5.1 5.0 +# MYSQL_VERSION_ID 50140 50034 +# +MYSQL_NO_DASH_VERSION=`echo $VERSION | sed -e "s|-.*$||"` +MYSQL_NUMERIC_VERSION=`echo $MYSQL_NO_DASH_VERSION | sed -e "s|[[a-z]][[a-z0-9]]*$||"` +MYSQL_BASE_VERSION=`echo $MYSQL_NUMERIC_VERSION | sed -e "s|\.[[^.]]*$||"` +MYSQL_VERSION_ID=`echo $MYSQL_NUMERIC_VERSION | \ + awk -F. '{printf "%d%0.2d%0.2d", $1, $2, $3}'` # Add previous major version for debian package upgrade path MYSQL_PREVIOUS_BASE_VERSION=4.1 |