mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 11:37:32 +03:00
32 lines
797 B
Bash
Executable File
32 lines
797 B
Bash
Executable File
#!/bin/bash
|
|
set -Eeuo pipefail
|
|
|
|
echo "### Setting versions of VimR"
|
|
pushd "$( dirname "${BASH_SOURCE[0]}" )/.." > /dev/null
|
|
|
|
readonly is_snapshot=${is_snapshot:?"true or false"}
|
|
marketing_version=${marketing_version:?"0.29.0"}
|
|
|
|
pushd VimR > /dev/null
|
|
# bundle version
|
|
agvtool bump -all
|
|
readonly 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 > /dev/null
|
|
|
|
for proj in 'NvimView'; do
|
|
pushd ${proj}
|
|
agvtool new-version -all ${bundle_version}
|
|
agvtool new-marketing-version ${marketing_version}
|
|
popd
|
|
done
|
|
|
|
popd > /dev/null
|
|
echo "### Set versions of VimR"
|