2016-10-14 13:15:32 +03:00
|
|
|
#!/bin/bash
|
2019-12-22 23:45:42 +03:00
|
|
|
set -Eeuo pipefail
|
2016-10-14 13:31:51 +03:00
|
|
|
|
2016-10-14 13:15:32 +03:00
|
|
|
echo "### Setting versions of VimR"
|
2019-12-22 23:45:42 +03:00
|
|
|
pushd "$( dirname "${BASH_SOURCE[0]}" )/.." > /dev/null
|
2016-10-14 13:15:32 +03:00
|
|
|
|
2019-12-22 23:45:42 +03:00
|
|
|
readonly is_snapshot=${is_snapshot:?"true or false"}
|
|
|
|
marketing_version=${marketing_version:?"0.29.0"}
|
2016-10-14 13:15:32 +03:00
|
|
|
|
2019-12-22 23:45:42 +03:00
|
|
|
pushd VimR > /dev/null
|
|
|
|
# bundle version
|
|
|
|
agvtool bump -all
|
|
|
|
readonly bundle_version=$(agvtool what-version | sed '2q;d' | sed -E 's/ +(.+)/\1/')
|
2016-10-15 00:55:38 +03:00
|
|
|
|
2019-12-22 23:45:42 +03:00
|
|
|
# marketing version
|
|
|
|
if [[ ${is_snapshot} == true ]]; then
|
|
|
|
marketing_version="SNAPSHOT-${bundle_version}"
|
|
|
|
fi
|
2016-10-14 13:15:32 +03:00
|
|
|
|
2019-12-22 23:45:42 +03:00
|
|
|
agvtool new-marketing-version ${marketing_version}
|
|
|
|
popd > /dev/null
|
2017-12-03 11:59:15 +03:00
|
|
|
|
2018-05-07 20:14:55 +03:00
|
|
|
for proj in 'NvimView'; do
|
2017-12-03 11:59:15 +03:00
|
|
|
pushd ${proj}
|
2019-12-22 23:45:42 +03:00
|
|
|
agvtool new-version -all ${bundle_version}
|
|
|
|
agvtool new-marketing-version ${marketing_version}
|
2017-12-03 11:59:15 +03:00
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
2019-12-22 23:45:42 +03:00
|
|
|
popd > /dev/null
|
2016-10-14 13:15:32 +03:00
|
|
|
echo "### Set versions of VimR"
|