projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc67228
)
remove the dumpit file after use
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 12 Jun 2003 19:17:08 +0000
(19:17 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 12 Jun 2003 19:17:08 +0000
(19:17 +0000)
src/mkhelp.pl
patch
|
blob
|
history
diff --git
a/src/mkhelp.pl
b/src/mkhelp.pl
index 8487b87820607cea4ab83577a0c8aee90200d6c9..2ff41a291090b7dcabc776af23404754a74f14d4 100644
(file)
--- 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!