1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00
vimr/bin/build.sh
Tae Won Ha 25b2df508b
Temp
2016-10-14 12:31:51 +02:00

34 lines
789 B
Bash
Executable File

#!/bin/bash
set -e
export PATH=/usr/local/bin:$PATH
# # parameters
BRANCH=$1
MARKETING_VERSION=$2
IS_SNAPSHOT=$3
#./bin/prepare_repositories.sh
#./bin/clean_old_builds.sh
#./bin/set_new_versions.sh "${MARKETING_VERSION}" ${IS_IS_SNAPSHOT}
#./bin/build_vimr.sh
BUNDLE_VERSION=$(agvtool what-version | sed '2q;d' | sed -E 's/ +(.+)/\1/')
MARKETING_VERSION=$(agvtool what-marketing-version | tail -n 1 | sed -E 's/.*of "(.*)" in.*/\1/')
COMPOUND_VERSION="v${MARKETING_VERSION}-${BUNDLE_VERSION}"
if [ ${IS_SNAPSHOT} = true ] ; then
COMPOUND_VERSION="v${MARKETING_VERSION}-${BUNDLE_VERSION}"
fi
#./bin/commit_and_push_tags.sh "${BRANCH}" "${COMPOUND_VERSION}"
exit 0
pushd build/Release
VIMR_FILE_NAME="VimR-${COMPOUND_VERSION}.tar.bz2"
tar cjf "${VIMR_FILE_NAME}" VimR.app
popd