forked from JunxiongGuan/nvmetcli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a bump-ver.sh script to automate cutting releases
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |