diff --git a/script/build b/script/build index f8ceb30..e1a4099 100755 --- a/script/build +++ b/script/build @@ -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 diff --git a/script/install b/script/install index 5cdd879..c87f676 100755 --- a/script/install +++ b/script/install @@ -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} diff --git a/script/package b/script/package index 8ad6daf..a8d0c34 100755 --- a/script/package +++ b/script/package @@ -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