diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-01-12 09:14:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-01-12 09:14:12 +0000 |
commit | 11e8600390e46f3e9d22ed41c98a16fbcd1698ea (patch) | |
tree | 605a3f7da90d566c5e25ec81e9c54810861e9ced /maketgz | |
parent | 93aea06ed9094b1a0b50e1ea8e5da0e6cdd2903b (diff) | |
download | curl-11e8600390e46f3e9d22ed41c98a16fbcd1698ea.tar.gz |
cut the patch number before a '-' too, to enable '7.11.0-pre1' to use
patch number zero.
Diffstat (limited to 'maketgz')
-rwxr-xr-x | maketgz | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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` |