aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-12 09:14:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-12 09:14:12 +0000
commit11e8600390e46f3e9d22ed41c98a16fbcd1698ea (patch)
tree605a3f7da90d566c5e25ec81e9c54810861e9ced
parent93aea06ed9094b1a0b50e1ea8e5da0e6cdd2903b (diff)
cut the patch number before a '-' too, to enable '7.11.0-pre1' to use
patch number zero.
-rwxr-xr-xmaketgz2
1 files changed, 1 insertions, 1 deletions
diff --git a/maketgz b/maketgz
index a5866ec5b..4e7bdaef6 100755
--- a/maketgz
+++ b/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`