mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
made it split the version number on - too to make 7.7-blabla make a better
version number define in the header file
This commit is contained in:
parent
97f1c93674
commit
9ce5827fc1
2
maketgz
2
maketgz
@ -11,7 +11,7 @@ libversion="$version"
|
|||||||
# Now we have a section to get the major, minor and patch number from the
|
# Now we have a section to get the major, minor and patch number from the
|
||||||
# full version string. We create a single hexadecimal number from it '0xMMmmpp'
|
# full version string. We create a single hexadecimal number from it '0xMMmmpp'
|
||||||
#
|
#
|
||||||
perl='$a=<STDIN>;@p=split("\\.",$a);for(0..2){printf STDOUT ("%02x",$p[0+$_]);}';
|
perl='$a=<STDIN>;@p=split("[\\.-]",$a);for(0..2){printf STDOUT ("%02x",$p[0+$_]);}';
|
||||||
|
|
||||||
numeric=`echo $libversion | perl -e "$perl"`
|
numeric=`echo $libversion | perl -e "$perl"`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user