#!/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 VERSION=$(git describe --abbrev=0 --tags) VERSION=${VERSION#v} SCRIPT_PATH=$(dirname $(which $0)) cat <"${SCRIPT_PATH}/../Sources/MasKit/Package.swift" // Generated by: script/version enum Package { static let Version = "${VERSION}" } EOF echo ${VERSION}