~ubuntu-branches/ubuntu/natty/curl/natty-security

« back to all changes in this revision

Viewing changes to src/mkhelp.pl

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2010-06-20 13:56:28 UTC
  • mfrom: (3.4.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100620135628-e30tp9jldq6hq985
Tags: 7.21.0-1ubuntu1
* Merge from debian unstable.  Remaining changes: LP: #596334
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
}
21
21
 
22
22
 
23
 
push @out, "                                  _   _ ____  _     \n";
24
 
push @out, "  Project                     ___| | | |  _ \\| |    \n";
25
 
push @out, "                             / __| | | | |_) | |    \n";
26
 
push @out, "                            | (__| |_| |  _ <| |___ \n";
 
23
push @out, "                                  _   _ ____  _\n";
 
24
push @out, "  Project                     ___| | | |  _ \\| |\n";
 
25
push @out, "                             / __| | | | |_) | |\n";
 
26
push @out, "                            | (__| |_| |  _ <| |___\n";
27
27
push @out, "                             \\___|\\___/|_| \\_\\_____|\n";
28
28
 
29
29
my $olen=0;
35
35
 
36
36
    if($line =~ /^([ \t]*\n|curl)/i) {
37
37
        # cut off headers and empty lines
38
 
        $wline++; # count number of cut off lines
39
 
        next;
 
38
        $wline++; # count number of cut off lines
 
39
        next;
40
40
    }
41
41
 
42
42
    my $text = $line;
57
57
    $olen = $tlen;
58
58
 
59
59
    if($wline) {
60
 
        # we only make one empty line max
61
 
        $wline = 0;
 
60
        # we only make one empty line max
 
61
        $wline = 0;
62
62
        push @out, "\n";
63
63
    }
64
64
    push @out, $line;
87
87
        close(GZIP);
88
88
 
89
89
        system("gzip --best --no-name dumpit");
90
 
        
 
90
 
91
91
        open(GZIP, "<dumpit.gz") ||
92
92
             die "can't read the dumpit.gz file, try without -c";
93
93
        binmode GZIP;
174
174
      z.next_out = buf;
175
175
      status = inflate(&z, Z_SYNC_FLUSH);
176
176
      if (status == Z_OK || status == Z_STREAM_END) {
177
 
        fwrite(buf, BUF_SIZE - z.avail_out, 1, stdout);
178
 
        if (status == Z_STREAM_END)
179
 
           break;
 
177
        fwrite(buf, BUF_SIZE - z.avail_out, 1, stdout);
 
178
        if (status == Z_STREAM_END)
 
179
          break;
180
180
      }
181
 
       else
182
 
        break;    /* Error */
 
181
      else
 
182
        break;    /* Error */
183
183
    }
184
184
    free(buf);
185
185
  }