summaryrefslogtreecommitdiff
path: root/maketgz
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-29 11:33:31 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2004-01-29 11:33:31 (GMT)
commit0f398c7a3234255ec40868878254b2ae649a5cb7 (patch)
treeb6136a48960958127e966bf64b4f05e24e178b97 /maketgz
parent8c85a48e91c3bce293777abdc7622eeb49abb729 (diff)
downloadc-ares-0f398c7a3234255ec40868878254b2ae649a5cb7.zip
c-ares-0f398c7a3234255ec40868878254b2ae649a5cb7.tar.gz
c-ares-0f398c7a3234255ec40868878254b2ae649a5cb7.tar.bz2
use the name 'c-ares' for this package
Diffstat (limited to 'maketgz')
-rwxr-xr-xmaketgz13
1 files changed, 9 insertions, 4 deletions
diff --git a/maketgz b/maketgz
index 18d2782..670109b 100755
--- a/maketgz
+++ b/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`;