blob: 41f6939219a2c5c41fd43e4b8a634be0380c5f78 [file] [log] [blame]
#!/bin/bash
set -e
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <version>" >&2
exit 1
fi
if [ -n "$(git status -s)" ]; then
echo "Working directory is dirty."
exit 2
fi
VERSION=$1
cargo package
sed -i "/version/ s/\"\(.*\)\"/\"$VERSION\"/" Cargo.toml
git add Cargo.toml
git commit -m $VERSION
git tag -a $VERSION -m "quiche $VERSION" --sign