nasmdoc: add missing comma
[nasm.git] / misc / tag-release
blob230137f788c8a7777e47b3885acb206d877f97ba
1 #!/bin/sh
3 version="$1"
4 repo=""
5 branch=""
7 if [ -z "$version" ]; then
8 echo "Usage: $0 version [repo branch]" 1>&2
9 exit 1
12 tag="nasm-$version"
14 if [ $# -eq 3 ]; then
15 repo="$2"
16 branch="$3"
19 echo "$version" > version
20 git add version
21 git commit -m "NASM $version"
22 git tag -a -m "NASM $version" "$tag"
24 if [ $# -eq 3 ]; then
25 git push "$repo" "$branch"
26 git push "$repo" "$tag"
27 else
28 git push
29 git push --tags