Commit f21b7895 authored by Michael Tokarev's avatar Michael Tokarev

get-orig-source: handle 3.x and 4.x too

parent cdd7a3b6
......@@ -78,7 +78,7 @@ case "$#$1" in
echo "apparently not a qemu source dir" >&2; exit 1
;;
1[012].*) ;;
1[01234].*) ;;
*)
echo "unknown arguments. Should be either 'dfsg' or a version number" >&2
......@@ -92,7 +92,7 @@ case "$upstream" in
*~rc*) upstream=$(echo "$upstream" | sed 's/~rc/-rc/') ;;
esac
case "$upstream" in
2.[0-9] | 2.[0-9][!0-9.]* ) # add .0 to a version number
[234].[0-9] | [234].[0-9][!0-9.]* ) # add .0 to a version number
upstream=$(echo "$upstream" | sed 's/^.\../&.0/') ;;
esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment