summaryrefslogtreecommitdiff
path: root/maketgz
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-18 12:00:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-18 12:00:34 +0000
commitce7326ed090304f4eb4a9630409fe1d379a46a63 (patch)
treeb60315acdb52106383b0e5196a6afd5ab443a647 /maketgz
parentb3591ec464cd26e536354fb700aa33292440d936 (diff)
downloadcurl-ce7326ed090304f4eb4a9630409fe1d379a46a63.tar.gz
1. read the version from the command line
2. make the libcurl and curl version the same
Diffstat (limited to 'maketgz')
-rwxr-xr-xmaketgz14
1 files changed, 10 insertions, 4 deletions
diff --git a/maketgz b/maketgz
index 89ced3d66..91d4851b2 100755
--- a/maketgz
+++ b/maketgz
@@ -2,8 +2,14 @@
# Script to build release-archives with
#
-echo "LIB version number?"
-read version
+version=$1
+
+if [ -z "$version" ]; then
+ echo "Specify a version number!"
+ exit
+fi
+
+echo $version
libversion="$version"
@@ -15,8 +21,8 @@ perl='$a=<STDIN>;@p=split("[\\.-]",$a);for(0..2){printf STDOUT ("%02x",$p[0+$_])
numeric=`echo $libversion | perl -e "$perl"`
-echo "CURL version number?"
-read curlversion
+# we make curl the same version as libcurl
+curlversion=$libversion
HEADER=include/curl/curl.h
CHEADER=src/version.h