mirror of
https://github.com/curl/curl.git
synced 2026-04-25 11:02:11 +03:00
cut the patch number before a '-' too, to enable '7.11.0-pre1' to use
patch number zero.
This commit is contained in:
parent
93aea06ed9
commit
11e8600390
1 changed files with 1 additions and 1 deletions
2
maketgz
2
maketgz
|
|
@ -16,7 +16,7 @@ curlversion=$libversion
|
|||
|
||||
major=`echo $libversion |cut -d. -f1 | sed -e "s/[^0-9]//g"`
|
||||
minor=`echo $libversion |cut -d. -f2 | sed -e "s/[^0-9]//g"`
|
||||
patch=`echo $libversion |cut -d. -f3 | sed -e "s/[^0-9]//g"`
|
||||
patch=`echo $libversion |cut -d. -f3 | cut -d- -f1 | sed -e "s/[^0-9]//g"`
|
||||
|
||||
numeric=`echo "obase=16; $major*256*256 + $minor*256 + $patch" | bc`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue