mac os x build script: fixed creating valid version number for Iceberg for Lazarus versions with characters, such as 0.9.30.2RC1

git-svn-id: trunk@32094 -
This commit is contained in:
vincents 2011-08-29 12:10:31 +00:00
parent c85b5cb9b9
commit 54a4e2fd68

View File

@ -78,9 +78,9 @@ LazVersion=$(./get_lazarus_version.sh)
cd -
LazRelease='0'
# Iceberg only supports a major and a minor version number
# convert 1.2.3 => 1.23
# convert 1.2.3 => 1.23 and 0.9.30.2RC1 => 0.93021
LAZMAJORVERSION=$(echo $LazVersion | sed -e 's/\..*//')
LAZMINORVERSION=$(echo $LazVersion | sed -e 's/[^.]*\.//' -e 's/\.//g')
LAZMINORVERSION=$(echo $LazVersion | sed -e 's/[^.]*\.//' -e 's/\.//g' | tr -d [A-Za-z])
COMPILER=$PP
if [ -z "$COMPILER" ]; then