From 93692198c0a7ce099ff8e1486edb021be01cc135 Mon Sep 17 00:00:00 2001
From: Christoph Hellwig <hch@lst.de>
Date: Fri, 17 Feb 2017 15:46:43 +0100
Subject: [PATCH] add a bump-ver.sh script to automate cutting releases

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 bump-ver.sh | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 bump-ver.sh

diff --git a/bump-ver.sh b/bump-ver.sh
new file mode 100644
index 0000000..af850c0
--- /dev/null
+++ b/bump-ver.sh
@@ -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)
-- 
GitLab