tag-release: a simple script to tag the repository for release
authorH. Peter Anvin <hpa@zytor.com>
Tue, 20 Nov 2007 07:09:24 +0000 (23:09 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 20 Nov 2007 07:09:24 +0000 (23:09 -0800)
misc/tag-release [new file with mode: 0755]

diff --git a/misc/tag-release b/misc/tag-release
new file mode 100755 (executable)
index 0000000..efaa4c3
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+version="$1"
+if [ -z "$version" ]; then
+  echo "Usage: $0 version" 1>&2
+  exit 1
+fi
+
+echo "$version" > version
+git add version
+git commit -m "NASM $version"
+git tag -a -m "NASM $version" nasm-"$version"
+git push
+git push --tags