📜 Use version script in other scripts

This commit is contained in:
Ben Chatelain 2019-01-13 00:58:51 -07:00
parent 328a96d49b
commit 6850dac78e
3 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@ BUILD_DIR="$PWD/build"
PROJECT="mas-cli.xcodeproj"
SCHEME="mas-cli Release"
CONFIG="Release"
VERSION=$(agvtool what-marketing-version -terse1)
VERSION=$(script/version)
main() {
script/clean

View file

@ -9,7 +9,7 @@ BUILD_DIR="$PWD/build"
PROJECT="mas-cli.xcodeproj"
SCHEME="mas-cli Release"
CONFIG="Release"
VERSION=$(agvtool what-marketing-version -terse1)
VERSION=$(script/version)
# Destination for `xcodebuild install`
INSTALL_TEMPORARY_FOLDER=${DSTROOT:-build/distributions}

View file

@ -18,7 +18,7 @@ DISTRIBUTION_PLIST="Package/Distribution.plist"
INSTALL_TEMPORARY_FOLDER=${DSTROOT:-build/distributions}
mkdir -p $INSTALL_TEMPORARY_FOLDER
VERSION=$(agvtool what-marketing-version -terse1)
VERSION=$(script/version)
# Final destination.
PREFIX=/usr/local