summaryrefslogtreecommitdiff
path: root/src/mkhelp.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-06-12 19:17:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-06-12 19:17:08 +0000
commitd2abe44e6f89eaaff20436362fb33077d7a294a2 (patch)
treef8d531de9c946d8d30e30b8a98172d5d982a0f40 /src/mkhelp.pl
parentbc672285764fd874f56c6da1c5602c558eabc31f (diff)
downloadcurl-d2abe44e6f89eaaff20436362fb33077d7a294a2.tar.gz
remove the dumpit file after use
Diffstat (limited to 'src/mkhelp.pl')
-rw-r--r--src/mkhelp.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mkhelp.pl b/src/mkhelp.pl
index 8487b8782..2ff41a291 100644
--- a/src/mkhelp.pl
+++ b/src/mkhelp.pl
@@ -65,7 +65,8 @@ close(READ);
if($c) {
my @test = `gzip --version 2>&1`;
if($test[0] =~ /gzip/) {
- open(GZIP, "|gzip -9 >dumpit.gz");
+ open(GZIP, "|gzip -9 >dumpit.gz") ||
+ die "can't run gzip, try without -c";
binmode GZIP;
for(@out) {
print GZIP $_;
@@ -80,6 +81,8 @@ if($c) {
$gzipped += length($_);
}
close(GZIP);
+
+ unlink("dumpit.gz");
}
else {
# no gzip, no compression!