From 62e0f10eba85368bb761db71ff746c4e7aec1c75 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 29 Jan 2004 11:33:31 +0000 Subject: use the name 'c-ares' for this package --- ares/maketgz | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'ares/maketgz') diff --git a/ares/maketgz b/ares/maketgz index 18d27822e..670109b35 100755 --- a/ares/maketgz +++ b/ares/maketgz @@ -2,6 +2,8 @@ $version = $ARGV[0]; +$name="c-ares"; + if($version eq "") { print "Enter version number!\n"; exit; @@ -81,13 +83,16 @@ sub mkalldir { } for(@entries) { - my $dir = dirpart("arescurl-$version/$_"); + my $dir = dirpart("$name-$version/$_"); # print "Create $dir\n"; mkalldir($dir); # print "Copy $_ to $dir\n"; `cp -p $_ $dir`; } -`tar -cf arescurl-$version.tar arescurl-$version`; -`gzip -9 arescurl-$version.tar`; -`rm -rf arescurl-$version`; +# make a tarball +`tar -cf $name-$version.tar $name-$version`; +# gzip the tarball +`gzip -9 $name-$version.tar`; +# remove the dir +`rm -rf $name-$version`; -- cgit v1.2.3