mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-30 16:51:59 +03:00
33 lines
584 B
Bash
Executable File
33 lines
584 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
IS_SNAPSHOT=$1
|
|
MARKETING_VERSION=$2
|
|
|
|
echo "### Setting versions of VimR"
|
|
|
|
pushd VimR
|
|
|
|
# bundle version
|
|
agvtool bump -all
|
|
BUNDLE_VERSION=$(agvtool what-version | sed '2q;d' | sed -E 's/ +(.+)/\1/')
|
|
|
|
# marketing version
|
|
if [ "${IS_SNAPSHOT}" = true ] ; then
|
|
MARKETING_VERSION="SNAPSHOT-${BUNDLE_VERSION}"
|
|
fi
|
|
|
|
agvtool new-marketing-version ${MARKETING_VERSION}
|
|
|
|
popd
|
|
|
|
for proj in 'NvimView'; do
|
|
pushd ${proj}
|
|
agvtool new-version -all ${BUNDLE_VERSION}
|
|
agvtool new-marketing-version ${MARKETING_VERSION}
|
|
popd
|
|
done
|
|
|
|
echo "### Set versions of VimR"
|