summaryrefslogtreecommitdiff
path: root/release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'release.sh')
-rwxr-xr-xrelease.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/release.sh b/release.sh
new file mode 100755
index 0000000..04e2f2f
--- /dev/null
+++ b/release.sh
@@ -0,0 +1,7 @@
+if [ $# -eq 0 ]; then
+ echo "You must pass the version number."
+ exit 1
+fi
+
+sed -i "3s/.*/version = \"$1\"/" Cargo.toml
+git tag -a "v$1" -m "Version $1"