2023-07-17 17:53:26 -04:00
|
|
|
#!/bin/bash
|
2023-07-16 14:35:51 -04:00
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ "$1" == "patch" ]; then
|
|
|
|
echo Bumping patch version
|
2023-07-16 14:51:12 -04:00
|
|
|
PART=patch
|
2023-07-16 14:35:51 -04:00
|
|
|
elif [ "$1" == "minor" ]; then
|
|
|
|
echo Bumping minor version
|
2023-07-16 14:51:12 -04:00
|
|
|
PART=minor
|
2023-07-16 14:35:51 -04:00
|
|
|
elif [ "$1" == "major" ]; then
|
|
|
|
echo Bumping major version
|
2023-07-16 14:51:12 -04:00
|
|
|
PART=major
|
|
|
|
else
|
|
|
|
echo Unsupported part! Specify 'patch', 'minor', or 'major'
|
|
|
|
exit 1
|
2023-07-16 14:35:51 -04:00
|
|
|
fi
|
|
|
|
|
2023-07-16 15:04:00 -04:00
|
|
|
bumpversion $PART
|
2023-07-19 13:01:55 -04:00
|
|
|
cargo update
|