mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 20:49:27 +02:00
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:
parent
c85b5cb9b9
commit
54a4e2fd68
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user