2021-11-05 15:05:13 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eo pipefail
|
|
|
|
|
|
|
|
update_version_to_meet_packaging_standards() {
|
|
|
|
new_version=$(echo "$new_version" |
|
|
|
|
sed -e 's/\([0-9]\)-\([a-zA-Z]\)/\1~\2/')
|
|
|
|
}
|
|
|
|
|
|
|
|
bump_rpm() {
|
2022-03-25 11:53:28 +01:00
|
|
|
builder/bump-package-version-rpm "$new_version"
|
2021-11-05 15:05:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bump_deb() {
|
2022-03-25 11:59:47 +01:00
|
|
|
builder/bump-package-version-deb "$new_version"
|
2021-11-05 15:05:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
new_version="$1"
|
|
|
|
|
|
|
|
if [[ -z "$new_version" ]]; then
|
|
|
|
echo >&2 "Usage: $(basename "$0") <new_version>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
|
|
update_version_to_meet_packaging_standards
|
|
|
|
bump_rpm
|
|
|
|
bump_deb
|