summaryrefslogtreecommitdiff
path: root/maketgz
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-08 09:23:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-08 09:23:11 +0000
commit9ce5827fc1c5198d6ba94a9e88fe06cfb40b0c8e (patch)
treeaaa500eda258e86ad59c719d67b6d64630db2427 /maketgz
parent97f1c93674d5fd39f2bcc397c79f2e31773e1aa1 (diff)
downloadcurl-9ce5827fc1c5198d6ba94a9e88fe06cfb40b0c8e.tar.gz
made it split the version number on - too to make 7.7-blabla make a better
version number define in the header file
Diffstat (limited to 'maketgz')
-rwxr-xr-xmaketgz2
1 files changed, 1 insertions, 1 deletions
diff --git a/maketgz b/maketgz
index fcfef3f53..200d8b6b0 100755
--- a/maketgz
+++ b/maketgz
@@ -11,7 +11,7 @@ libversion="$version"
# Now we have a section to get the major, minor and patch number from the
# full version string. We create a single hexadecimal number from it '0xMMmmpp'
#
-perl='$a=<STDIN>;@p=split("\\.",$a);for(0..2){printf STDOUT ("%02x",$p[0+$_]);}';
+perl='$a=<STDIN>;@p=split("[\\.-]",$a);for(0..2){printf STDOUT ("%02x",$p[0+$_]);}';
numeric=`echo $libversion | perl -e "$perl"`