Skip to content

Commit

Permalink
add a bump-ver.sh script to automate cutting releases
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
Christoph Hellwig committed Feb 17, 2017
1 parent 4e98c4e commit 9369219
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions bump-ver.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/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 comments on commit 9369219

Please sign in to comment.