From 207d6eadd1ad8cae280e24a2a9bf9f0e15eecc43 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Fri, 6 Nov 2015 02:15:58 -0500 Subject: [PATCH] Update CFBundleVersion to just major.minor.build and include the GIT ref elsewhere. --- Scripts/updatePlist | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Scripts/updatePlist b/Scripts/updatePlist index 9d217e67..3538a19f 100755 --- a/Scripts/updatePlist +++ b/Scripts/updatePlist @@ -37,13 +37,13 @@ setSettingWithTitle() { description=$(git describe --always --dirty --long --match '*-release') version=${description%-g*} -major=${version%%-*} minor=${version##*-} -printf -v version '%s.%02d' "$major" "$minor" -printf -v commit '%09d' "$((16#${description##*-g}))" +release=${version%%-*} build=${version##*-} +printf -v version '%s.%d' "$release" "$build" +printf -v commit '%s' "${description##*-g}" addPlistWithKey GITDescription string "$description" -setPlistWithKey CFBundleVersion "$version.$commit" -setPlistWithKey CFBundleShortVersionString "$version" +setPlistWithKey CFBundleVersion "$version" +setPlistWithKey CFBundleShortVersionString "$release" setSettingWithTitle "Build" "$commit" setSettingWithTitle "Version" "$version"