summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-03-23 09:42:07 +0000
committerpaltherr <paltherr@epfl.ch>2004-03-23 09:42:07 +0000
commitda995cbaece63dad40fba5eb0ef8de9928165c11 (patch)
tree7ffa5b88f1a4864f586c9fb87b585e4f3808e1b4
parenta70044860bbd402c4191038615160fb7168572f7 (diff)
downloadscala-da995cbaece63dad40fba5eb0ef8de9928165c11.tar.gz
scala-da995cbaece63dad40fba5eb0ef8de9928165c11.tar.bz2
scala-da995cbaece63dad40fba5eb0ef8de9928165c11.zip
- Changed version format to <int>.<int>.<int>.<...
- Changed version format to <int>.<int>.<int>.<int>
-rw-r--r--VERSION2
-rw-r--r--support/scripts/version-manager.sh15
2 files changed, 9 insertions, 8 deletions
diff --git a/VERSION b/VERSION
index 3b637391f8..e82912dafd 100644
--- a/VERSION
+++ b/VERSION
@@ -6,4 +6,4 @@
#
# DO NOT EDIT. Automatically generated file!
##############################################################################
-1.1.0-b4
+1.1.0.4
diff --git a/support/scripts/version-manager.sh b/support/scripts/version-manager.sh
index 3706dfe876..0c7cbf66f8 100644
--- a/support/scripts/version-manager.sh
+++ b/support/scripts/version-manager.sh
@@ -25,8 +25,9 @@ function version-manager-args() {
}
function version-manager-compose() {
+ [ $# = 5 ] || abort "internal error";
local variable="$1"; shift 1;
- local value="$1.$2.$3-b$4"; shift 4;
+ local value="$1.$2.$3.$4"; shift 4;
eval "$variable=\"\$value\"";
}
@@ -34,10 +35,10 @@ function version-manager-decompose() {
[ $# = 2 ] || abort "internal error";
local array="$1"; shift 1;
local value="$1"; shift 1;
- local v0=`expr "$value" : '\([0-9]*\)\.[0-9]*\.[0-9]*-b[0-9]*$'`;
- local v1=`expr "$value" : '[0-9]*\.\([0-9]*\)\.[0-9]*-b[0-9]*$'`;
- local v2=`expr "$value" : '[0-9]*\.[0-9]*\.\([0-9]*\)-b[0-9]*$'`;
- local v3=`expr "$value" : '[0-9]*\.[0-9]*\.[0-9]*-b\([0-9]*\)$'`;
+ local v0=`expr "$value" : '\([0-9]*\)\.[0-9]*\.[0-9]*\.[0-9]*$'`;
+ local v1=`expr "$value" : '[0-9]*\.\([0-9]*\)\.[0-9]*\.[0-9]*$'`;
+ local v2=`expr "$value" : '[0-9]*\.[0-9]*\.\([0-9]*\)\.[0-9]*$'`;
+ local v3=`expr "$value" : '[0-9]*\.[0-9]*\.[0-9]*\.\([0-9]*\)$'`;
eval "$array[0]=\"\$v0\"";
eval "$array[1]=\"\$v1\"";
eval "$array[2]=\"\$v2\"";
@@ -47,7 +48,7 @@ function version-manager-decompose() {
function version-manager-check-syntax() {
[ $# = 1 ] || abort "internal error";
local value="$1"; shift 1;
- expr "$value" : '[0-9]*\.[0-9]*\.[0-9]*-b[0-9]*$' 1> /dev/null 2>&1;
+ expr "$value" : '[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*$' 1> /dev/null 2>&1;
}
function version-manager-check-order() {
@@ -107,7 +108,7 @@ function version-manager() {
if ! $program-check-syntax "$old_value"; then
local -a error;
error[0]="version value '$old_value' in file '$file' does not conform";
- error[1]="to version syntax <int>.<int>.<int>-b<int>";
+ error[1]="to version syntax <int>.<int>.<int>.<int>";
abort "${error[*]}";
fi;