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