diff options
author | con <qtc-committer@nokia.com> | 2009-04-08 11:40:53 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2009-04-08 11:40:53 +0200 |
commit | be7f1e2f5573d5d9c613435b01453799140bfe0a (patch) | |
tree | de47f1b261184f105cadcd7a95437d4b04b572b8 /scripts | |
parent | 2e1ecb5c1be9c924cdebb2f49885889afa7fab8e (diff) |
Another replaceVersion on Mac fix attempt.
Somehow the required end of line didn't work out on Mac.
We have 2-digit version number parts.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/replaceVersion.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/replaceVersion.sh b/scripts/replaceVersion.sh index df1dfebb43..5475bf7f1e 100755 --- a/scripts/replaceVersion.sh +++ b/scripts/replaceVersion.sh @@ -16,14 +16,14 @@ fi OLD=`sed 's/\./\\\\./g' <<<"$1"` NEW=`sed 's/\./\\\\./g' <<<"$2"` -OLD_MAJOR=`sed 's/^\([0-9]\)\.[0-9]\.[0-9]$/\1/' <<<"$1"` -NEW_MAJOR=`sed 's/^\([0-9]\)\.[0-9]\.[0-9]$/\1/' <<<"$2"` +OLD_MAJOR=`sed 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/' <<<"$1"` +NEW_MAJOR=`sed 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/' <<<"$2"` -OLD_MINOR=`sed 's/^[0-9]\.\([0-9]\)\.[0-9]$/\1/' <<<"$1"` -NEW_MINOR=`sed 's/^[0-9]\.\([0-9]\)\.[0-9]$/\1/' <<<"$2"` +OLD_MINOR=`sed 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/' <<<"$1"` +NEW_MINOR=`sed 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/' <<<"$2"` -OLD_RELEASE=`sed 's/^[0-9]\.[0-9]\.\([0-9]\)$/\1/' <<<"$1"` -NEW_RELEASE=`sed 's/^[0-9]\.[0-9]\.\([0-9]\)$/\1/' <<<"$2"` +OLD_RELEASE=`sed 's/^[0-9]*\.[0-9]*\.\([0-9]*\)/\1/' <<<"$1"` +NEW_RELEASE=`sed 's/^[0-9]*\.[0-9]*\.\([0-9]*\)/\1/' <<<"$2"` OLD_THREE="${OLD_MAJOR}${OLD_MINOR}${OLD_RELEASE}" NEW_THREE="${NEW_MAJOR}${NEW_MINOR}${NEW_RELEASE}" |