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.
14 echo -e "/* Auto-generated - leave alone and don't commit! */\n"
16 if ! git rev-parse 2>/dev/null; then
17 version="`cat $1/VERSION`"
21 describe="`git describe --long --dirty --match "v[0-9].[0-9]*"`"
22 version="`echo $describe | sed -e 's/\([^-]*\)-\(.*\)/\1 (\2)/'`"
26 echo "#define JAILHOUSE_VERSION \"$version\""