mas/script/version

19 lines
395 B
Text
Raw Normal View History

2019-01-13 07:18:35 +00:00
#!/bin/bash -e
#
# script/version
# mas
#
# Displays the current marketing version of mas.
2019-01-13 07:18:35 +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
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
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}"