3 # Jailhouse, a Linux-based partitioning hypervisor
5 # Copyright (c) Siemens AG, 2014
8 # Jan Kiszka <jan.kiszka@siemens.com>
10 # This work is licensed under the terms of the GNU GPL, version 2. See
11 # the COPYING file in the top-level directory.
21 if [ -z "$name" ]; then
25 if [ ! -f VERSION ] || [ ! -d .git ]; then
26 echo "Must be run from top-level directory"
30 if [ -n "`git status -s -uno`" ]; then
31 echo "Working directory is dirty!"
35 echo -e "Tag commit\n\n `git log -1 --oneline`"
36 echo -e "\nof branch\n\n `git branch | sed -n 's/^\* //p'`"
37 echo -ne "\nas $name? (y/N) "
39 if [ "$answer" != "y" ]; then
44 git commit -sv VERSION -m "Bump version number"
45 git tag -as $name -m "Release $name"