loader: make sure wait psw is 8-byte aligned
[hvf.git] / scripts / release_version.sh
blob9608476bb586eb3ac14d8a877eac07b4c7c07f3e
1 #!/bin/bash
3 if [ $# -ne 1 ]; then
4 echo "Usage: $0 <tagname>"
5 exit 1
6 fi
8 case "$1" in
9 v*)
10 tag="$1"
12 [0-9]*)
13 tag="v$1"
15 esac
17 ver=`echo $tag | sed -e 's/^v//'`
19 echo "About start release process of '`git rev-parse HEAD`' as '$tag'..."
20 echo "Press enter to continue."
21 read n
23 echo "1) Edit VERSION in 'Makefile'"
24 read n
25 vim Makefile
26 git update-index Makefile
27 git commit -s -m "HVF $ver"
29 echo "2) Tag the commit with '$tag'"
30 read n
31 git tag -u C7958FFE -m "HVF $tag" "$tag"
33 echo "3) Generate hvf-$ver.tar.{gz,bz2}"
34 read n
35 git archive --format=tar --prefix=hvf-$ver/ HEAD | gzip -9 > hvf-$ver.tar.gz
36 git archive --format=tar --prefix=hvf-$ver/ HEAD | bzip2 -9 > hvf-$ver.tar.bz2
38 echo "4) Profit"
40 echo "We're all done, have a nice day."