Skip to content
Snippets Groups Projects
Commit 93692198 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

add a bump-ver.sh script to automate cutting releases


Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 4e98c4e8
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
#
# Bump the version and cut a release. Can't be called release.sh because
# that would conflict with the make release rule in the makefile.
#
VER=$1
set -e
set +x
if [ -z "$VER" ]; then
echo "usage: $0 version" >&2
exit 1
fi
sed -i "s/version =.*,/version = $VER,/" setup.py
git add setup.py
git commit -m "bump version to v$VER"
git tag -s "v$VER" -m "nvmetcli release v$VER"
make release
(cd dist && gpg --armor --detach-sign nvmetcli-$VER.tar.gz)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment