aboutsummaryrefslogtreecommitdiff
path: root/maketgz
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-12-09 08:06:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-12-09 08:06:59 +0000
commita2bd47c567fb920eb9fa2a0aae27c41644293530 (patch)
tree80fe357131d3770a86af879f65065114c8ef6b3d /maketgz
parent7b3c308eb0e1d1d8b4d5a4c8dda6849e9bba1c44 (diff)
Bryan Henderson pointed out in bug report #1081788 that the curl-config
--vernum output wasn't zero prefixed properly (as claimed in documentation). This is fixed in maketgz now.
Diffstat (limited to 'maketgz')
-rwxr-xr-xmaketgz2
1 files changed, 1 insertions, 1 deletions
diff --git a/maketgz b/maketgz
index ed415c6dd..4941f8833 100755
--- a/maketgz
+++ b/maketgz
@@ -18,7 +18,7 @@ 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 | cut -d- -f1 | sed -e "s/[^0-9]//g"`
-numeric=`echo "obase=16; $major*256*256 + $minor*256 + $patch" | bc`
+numeric=`perl -e 'printf("%02x%02x%02x\n", '"$major, $minor, $patch);"`
HEADER=include/curl/curlver.h
CHEADER=src/version.h