Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
create_config: relax syntax for the third number
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed May 21, 2018
1 parent 813cf97 commit b01e4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create_config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ case $line in
version=${line#*=}
major=$(echo "$version" | cut -d. -f1)
minor=$(echo "$version" | cut -d. -f2)
micro=$(echo "$version" | cut -d. -f3)
micro=$(echo "$version" | cut -d. -f3 | sed 's/^\([0-9]*\).*$/\1/')
echo "#define QEMU_VERSION \"$version\""
echo "#define QEMU_VERSION_MAJOR $major"
echo "#define QEMU_VERSION_MINOR $minor"
Expand Down

0 comments on commit b01e4c3

Please sign in to comment.