cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Patch for compressed help

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 29 Jul 2003 01:06:34 +0200 (CEST)

On Tue, 29 Jul 2003, Gisle Vanem wrote:

> Yes, it works fine now. Except for a small warning:
>
> groff -man ../docs/curl.1 | perl -w ./mkhelp.pl -c ../README > hugehelp.c
> Use of uninitialized value in numeric eq (==) at ./mkhelp.pl line 47, <STDIN> line 7.

Ok, you can probably solve this by removing -w or by adding a "my $olen=0;"
before the while loop (I did that now before I committed this change).

> PS. I get:
> /* This mumbo-jumbo is the huge help text compressed with gzip.
> Thanks to this operation, the size of this data shrunk from 59647
> to 17357 bytes. You can disable the use of compressed help
>
> In your hugehelp.c the size was shrunk from 89349. My docs/curl.1 is 43120
> bytes and the README is 2286 bytes. Can't be that must difference in groff
> and nroff. What did I miss?

... the minor fact that the script doesn't actually use that README file (the
argument name in the script is slighly misleading, I know, but it once
actually was a readme file ;-)) when I run it: it uses the docs/MANUAL file
like this:

  /usr/bin/gnroff -man ../docs/curl.1 | /usr/bin/perl ../src/mkhelp.pl -c \
  ../docs/MANUAL > hugehelp.c

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-07-29