tunnelkit/ci/set_version.sh
Davide De Rosa 20d6d6747e Bump version
Take from command line, not file (unused after `1d3071b`).
2018-10-10 18:59:50 +02:00

10 lines
290 B
Bash
Executable File

#!/bin/sh
PWD=`dirname $0`
VERSION=$1
BUILD=`git rev-list HEAD --count`
agvtool new-marketing-version $VERSION
agvtool new-version $BUILD
echo "Setting podspec version to $VERSION..."
sed -i "" -E 's@s\.version( +)= "[0-9]+\.[0-9]+\.[0-9]+"$@s.version\1= "'$VERSION'"@g' TunnelKit.podspec