]> granicus.if.org Git - curl/commitdiff
1. read the version from the command line
authorDaniel Stenberg <daniel@haxx.se>
Sat, 18 Oct 2003 12:00:34 +0000 (12:00 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 18 Oct 2003 12:00:34 +0000 (12:00 +0000)
2. make the libcurl and curl version the same

maketgz

diff --git a/maketgz b/maketgz
index 89ced3d6651a87be1f5b238e79637b6873836d6e..91d4851b2381321c9efaa1eb525214ce55409540 100755 (executable)
--- 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