system/vl: Update description for input grab key
[qemu/kevin.git] / scripts / qemu-version.sh
blob3f6e7e6d41d87b026a7a40681e2530e7c04bfc8a
1 #!/bin/sh
3 set -eu
5 dir="$1"
6 pkgversion="$2"
7 version="$3"
9 if [ -z "$pkgversion" ]; then
10 cd "$dir"
11 if [ -e .git ]; then
12 pkgversion=$(git describe --match 'v*' --dirty) || :
16 if [ -n "$pkgversion" ]; then
17 fullversion="$version ($pkgversion)"
18 else
19 fullversion="$version"
22 cat <<EOF
23 #define QEMU_PKGVERSION "$pkgversion"
24 #define QEMU_FULL_VERSION "$fullversion"
25 EOF