tunnelkit/ci/set-version.sh

10 lines
290 B
Bash
Raw Normal View History

2018-09-23 13:25:51 +00:00
#!/bin/sh
PWD=`dirname $0`
VERSION=$1
2018-09-23 13:25:51 +00:00
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