2
0

Ability to handle versions without suffix after platform.

This commit is contained in:
Maarten Billemont 2017-05-04 14:30:50 -04:00
parent e96f678236
commit f86210f5da

View File

@ -41,9 +41,9 @@ case $PLATFORM_NAME in
*) ftl 'ERROR: Unknown platform: %s.' "$PLATFORM_NAME"; exit 1 ;; *) ftl 'ERROR: Unknown platform: %s.' "$PLATFORM_NAME"; exit 1 ;;
esac esac
description=$(git describe --always --dirty --long --match "*-$platform-*") description=$(git describe --always --dirty --long --match "*-$platform*")
version=${description%-g*} build=${version##*-} version=${version%-$build} version=${description%-g*} build=${version##*-} version=${version%-$build}
version=${version//-*-/.} release=${version%%-*} commit=${description##*-g} version=${version//-$platform/} version=${version//-/.} commit=${description##*-g}
addPlistWithKey GITDescription string "$description" addPlistWithKey GITDescription string "$description"
setPlistWithKey CFBundleVersion "$(hr "${version%%.*}" 14).${version#*.}" setPlistWithKey CFBundleVersion "$(hr "${version%%.*}" 14).${version#*.}"