2019-01-13 07:18:35 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
#
|
|
|
|
# script/version
|
|
|
|
# mas
|
|
|
|
#
|
2019-01-19 04:37:51 +00:00
|
|
|
# Displays the current marketing version of mas.
|
2019-01-13 07:18:35 +00:00
|
|
|
#
|
|
|
|
|
2020-05-12 03:02:25 +00:00
|
|
|
# This no longer works with MARKETING_VERSION build setting in Info.plist
|
|
|
|
# agvtool what-marketing-version -terse1
|
|
|
|
|
2024-02-18 21:34:47 +00:00
|
|
|
if git describe >/dev/null 2>&1; then
|
2024-02-18 17:46:53 +00:00
|
|
|
MAS_VERSION=$(git describe --abbrev=0 --tags 2>/dev/null || true)
|
|
|
|
else
|
2024-03-09 17:36:27 +00:00
|
|
|
MAS_VERSION=1.0.0
|
2024-02-18 17:46:53 +00:00
|
|
|
fi
|
2023-11-25 23:04:18 +00:00
|
|
|
MAS_VERSION=${MAS_VERSION#v}
|
2024-02-19 01:31:00 +00:00
|
|
|
echo "${MAS_VERSION}"
|