mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
build-sys: define QEMU_VERSION_{MAJOR, MINOR, MICRO}
There are better chances to find what went wrong at build time than a later assert in qmp_query_version Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20160912091913.15831-2-marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
e3571ae30c
commit
3688d8c717
2 changed files with 9 additions and 13 deletions
|
@ -7,7 +7,13 @@ while read line; do
|
|||
case $line in
|
||||
VERSION=*) # configuration
|
||||
version=${line#*=}
|
||||
major=$(echo "$version" | cut -d. -f1)
|
||||
minor=$(echo "$version" | cut -d. -f2)
|
||||
micro=$(echo "$version" | cut -d. -f3)
|
||||
echo "#define QEMU_VERSION \"$version\""
|
||||
echo "#define QEMU_VERSION_MAJOR $major"
|
||||
echo "#define QEMU_VERSION_MINOR $minor"
|
||||
echo "#define QEMU_VERSION_MICRO $micro"
|
||||
;;
|
||||
qemu_*dir=*) # qemu-specific directory configuration
|
||||
name=${line%=*}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue