summaryrefslogtreecommitdiffstats
path: root/packaging/ios/build.sh
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-06 06:46:10 -0600
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-06 06:46:10 -0600
commit14348a8d9aea5b50f27bb7ce9420759ae51dd2a0 (patch)
tree0121dded07b7b31a559967b70740be1d0aeaa1fb /packaging/ios/build.sh
parenta689d4aa1f63e90219d1cb5102b15302ff5285ab (diff)
downloadsubsurface-14348a8d9aea5b50f27bb7ce9420759ae51dd2a0.tar.gz
iOS build: next attempt to sort versions
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/ios/build.sh')
-rw-r--r--packaging/ios/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index d8ad33c31..0ebc90e8a 100644
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -8,7 +8,7 @@ set -e
TOP=$(pwd)
SUBSURFACE_SOURCE=${TOP}/../../../subsurface
IOS_QT=${TOP}/Qt
-QT_VERSION=$(cd ${IOS_QT}; ls -d [1-9]* | sort -n | tail -1)
+QT_VERSION=$(cd ${IOS_QT}; ls -d [1-9]* | awk -F. '{ printf("%02d.%02d.%02d\n", $1,$2,$3); }' | sort -n | tail -1 | sed -e 's/\.0/\./g;s/^0//')
if [ -z $QT_VERSION ] ; then
echo "Couldn't determine Qt version; giving up"