mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-05 22:12:18 -10:00
Typo introduced with the script.
Fixes: 2c273f32d3 ("meson: generate qemu-version.h")
Signed-off-by: Marc-André Lureau <[email protected]>
Reported-by: Laszlo Ersek <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Tested-by: Laszlo Ersek <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
26 lines
400 B
Bash
Executable File
26 lines
400 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
dir="$1"
|
|
pkgversion="$2"
|
|
version="$3"
|
|
|
|
if [ -z "$pkgversion" ]; then
|
|
cd "$dir"
|
|
if [ -e .git ]; then
|
|
pkgversion=$(git describe --match 'v*' --dirty) || :
|
|
fi
|
|
fi
|
|
|
|
if [ -n "$pkgversion" ]; then
|
|
fullversion="$version ($pkgversion)"
|
|
else
|
|
fullversion="$version"
|
|
fi
|
|
|
|
cat <<EOF
|
|
#define QEMU_PKGVERSION "$pkgversion"
|
|
#define QEMU_FULL_VERSION "$fullversion"
|
|
EOF
|