veilid/version_bump.sh

22 lines
531 B
Bash
Raw Normal View History

2023-07-16 18:35:51 +00:00
#!/bin/sh
set -e
if [ "$1" == "patch" ]; then
echo Bumping patch version
2023-07-16 18:51:12 +00:00
PART=patch
2023-07-16 18:35:51 +00:00
elif [ "$1" == "minor" ]; then
echo Bumping minor version
2023-07-16 18:51:12 +00:00
PART=minor
2023-07-16 18:35:51 +00:00
elif [ "$1" == "major" ]; then
echo Bumping major version
2023-07-16 18:51:12 +00:00
PART=major
else
echo Unsupported part! Specify 'patch', 'minor', or 'major'
exit 1
2023-07-16 18:35:51 +00:00
fi
2023-07-16 18:51:12 +00:00
CARGO_TOMLS=$(find . -name Cargo.toml -not -path ./external/\* -not -path ./Cargo.toml | xargs)
bumpversion --dry-run $PART $CARGO_TOMLS ./veilid-python/pyproject.toml ./veilid-flutter/pubspec.yaml
2023-07-16 18:35:51 +00:00