2016-07-16 20:24:12 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
export PATH=/usr/local/bin:$PATH
|
|
|
|
|
2016-07-17 00:25:21 +03:00
|
|
|
# delete all (local) branches
|
|
|
|
git for-each-ref --format="%(refname:strip=2)" refs/heads/ | xargs git branch -D
|
|
|
|
git checkout -b build_snapshot
|
|
|
|
|
2016-07-16 20:24:12 +03:00
|
|
|
# delete previously built VimR
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
git submodule update --init
|
|
|
|
|
|
|
|
# delete previously built libnvim
|
|
|
|
pushd neovim
|
|
|
|
ln -f -s ../local.mk .
|
2016-07-16 23:42:43 +03:00
|
|
|
rm -rf build
|
2016-07-16 20:24:12 +03:00
|
|
|
make clean
|
|
|
|
make CMAKE_BUILD_TYPE=Release libnvim
|
|
|
|
popd
|
|
|
|
|
|
|
|
carthage update --platform osx
|
|
|
|
|
|
|
|
./bin/bump_bundle_version.sh
|
|
|
|
./bin/set_snapshot_date.sh
|
|
|
|
|
2016-07-16 22:50:41 +03:00
|
|
|
xcodebuild CODE_SIGN_IDENTITY="Developer ID Application: Tae Won Ha (H96Q2NKTQH)" -configuration Release -target VimR
|
2016-07-16 20:24:12 +03:00
|
|
|
|
2016-07-17 00:25:21 +03:00
|
|
|
CUR_MARKETING_VERSION=$(./bin/current_marketing_version.sh)
|
|
|
|
CUR_BUNDLE_VERSION=$(./bin/current_bundle_version.sh)
|
2016-07-17 21:17:56 +03:00
|
|
|
SNAPSHOT_DATE=$(date +%Y%m%d.%H%M)
|
|
|
|
TAG_NAME=snapshot/${SNAPSHOT_DATE}-${CUR_BUNDLE_VERSION}
|
2016-07-17 00:25:21 +03:00
|
|
|
|
|
|
|
git commit -am "Set snapshot version: $CUR_MARKETING_VERSION-$CUR_BUNDLE_VERSION"
|
2016-07-17 21:17:56 +03:00
|
|
|
git tag -a -m "$CUR_MARKETING_VERSION ($CUR_BUNDLE_VERSION)" snapshot/${SNAPSHOT_DATE}-${CUR_BUNDLE_VERSION}
|
2016-07-16 22:47:07 +03:00
|
|
|
|
|
|
|
pushd build/Release
|
2016-07-17 00:25:21 +03:00
|
|
|
tar cjf VimR-${CUR_MARKETING_VERSION}.tar.bz2 VimR.app
|
|
|
|
tar cjf SwiftNeoVim.framework-${CUR_MARKETING_VERSION}.tar.bz2 SwiftNeoVim.framework
|
|
|
|
popd
|
|
|
|
|
|
|
|
git push origin HEAD:${BRANCH}
|
2016-07-17 00:35:46 +03:00
|
|
|
git push origin ${TAG_NAME}
|