From da995cbaece63dad40fba5eb0ef8de9928165c11 Mon Sep 17 00:00:00 2001 From: paltherr Date: Tue, 23 Mar 2004 09:42:07 +0000 Subject: - Changed version format to ...<... - Changed version format to ... --- VERSION | 2 +- support/scripts/version-manager.sh | 15 ++++++++------- 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 ..-b"; + error[1]="to version syntax ..."; abort "${error[*]}"; fi; -- cgit v1.2.3