mas/script/version
Ben Chatelain 67e678452f
🔨 Add version_bump script
Moved swift package manifest manipulation out of version script
2024-03-09 11:23:14 -07:00

18 lines
395 B
Bash
Executable file

#!/bin/bash -e
#
# script/version
# mas
#
# Displays the current marketing version of mas.
#
# This no longer works with MARKETING_VERSION build setting in Info.plist
# agvtool what-marketing-version -terse1
if git describe >/dev/null 2>&1; then
MAS_VERSION=$(git describe --abbrev=0 --tags 2>/dev/null || true)
else
MAS_VERSION=1.0.0
fi
MAS_VERSION=${MAS_VERSION#v}
echo "${MAS_VERSION}"