tunnelkit/ci/set_version.sh
Davide De Rosa 1d3071bdc4 Set podspec version statically
Podspecs are standalone files.

Partially reverts 4cbf935dea.
2018-09-26 11:54:40 +02:00

10 lines
306 B
Bash
Executable File

#!/bin/sh
PWD=`dirname $0`
VERSION=`cat $PWD/VERSION`
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