2020-12-19 05:12:20 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-04-03 01:57:12 +00:00
|
|
|
set -euo pipefail
|
2020-12-19 05:12:20 +00:00
|
|
|
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P )
|
|
|
|
cd "$parent_path" || exit
|
|
|
|
|
2021-06-22 00:04:02 +00:00
|
|
|
if [ 1 -eq "$#" ]
|
2020-12-19 05:12:20 +00:00
|
|
|
then
|
2021-06-22 00:04:02 +00:00
|
|
|
echo "Version bump to $1"
|
2022-04-03 02:02:35 +00:00
|
|
|
sed --in-place --regexp-extended 's/"([0-9]{1,2}.[0-9].[0-9])"/"'"$1"'"/g' barker/barker/__version__.py
|
2021-06-22 00:04:02 +00:00
|
|
|
git add barker/barker/__version__.py
|
2022-04-03 02:02:35 +00:00
|
|
|
sed --in-place --regexp-extended 's/version = "([0-9]{1,2}.[0-9].[0-9])"/version = "'"$1"'"/g' barker/pyproject.toml
|
2021-06-22 00:04:02 +00:00
|
|
|
git add barker/pyproject.toml
|
2022-04-03 02:02:35 +00:00
|
|
|
sed --in-place --regexp-extended 's/version = "([0-9]{1,2}.[0-9].[0-9])"/version = "'"$1"'"/g' frank/pyproject.toml
|
2021-06-22 00:04:02 +00:00
|
|
|
git add frank/pyproject.toml
|
2024-12-16 12:23:21 +00:00
|
|
|
sed --in-place --regexp-extended 's/version: '\''([0-9]*.[0-9].[0-9])'\''/version: '\'"$1"\''/g' bookie/src/app/app.environment.ts
|
|
|
|
git add bookie/src/app/app.environment.ts
|
2022-04-03 02:02:35 +00:00
|
|
|
sed --in-place --regexp-extended 's/"version": "([0-9]{1,2}.[0-9].[0-9])"/"version": "'"$1"'"/g' bookie/package.json
|
2021-06-22 00:04:02 +00:00
|
|
|
git add bookie/package.json
|
|
|
|
git commit -m "Version Bump v$1"
|
|
|
|
git tag "v$1"
|
|
|
|
else
|
|
|
|
echo "No version bump"
|
2020-12-19 05:12:20 +00:00
|
|
|
fi
|
|
|
|
git push
|
|
|
|
git tag --delete latest
|
|
|
|
git tag latest
|
|
|
|
git push --delete origin latest
|
|
|
|
git push --tags
|