From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.62)
	(envelope-from <gentoo-user+bounces-66155-garchives=archives.gentoo.org@gentoo.org>)
	id 1I67pz-0001Wj-9K
	for garchives@archives.gentoo.org; Wed, 04 Jul 2007 16:36:19 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l64GYahM007694;
	Wed, 4 Jul 2007 16:34:36 GMT
Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241])
	by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l64GRKkj031131
	for <gentoo-user@lists.gentoo.org>; Wed, 4 Jul 2007 16:27:20 GMT
Received: by an-out-0708.google.com with SMTP id c8so494747ana
        for <gentoo-user@lists.gentoo.org>; Wed, 04 Jul 2007 09:27:20 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
        b=GMPuepW85KgVKA38qzuypsVClxgVEimossasiLqZrPgfalUjmbhjyEkIkgWhmQVwiF+xUEETibcS/9kXho3yuHISccqRzsLCq1M+fNi0Rr5xRi9xp3+hVry1tCBw6+fQlXQ4JCfU4E/pdi/oSmWvAqCJGXBc+RBqvzi4hbpdJ/s=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
        b=Sp2N9ATpfV0ZcmDAlLW8w7XZ8i/7XvRXxXq6V68qBPutHk6Ajphzamyv7uc9CZp6VwPGc1J1jDwaXm3kUF38fjObVxo8bZLUwJCL+VZqvZzVrxMvHfFtBVZf3mv9FDKzjpkVKV6+sSvGcH34RYuS85krOeviCA/rr03npqJ3+tQ=
Received: by 10.100.48.7 with SMTP id v7mr4886554anv.1183566440145;
        Wed, 04 Jul 2007 09:27:20 -0700 (PDT)
Received: by 10.100.37.16 with HTTP; Wed, 4 Jul 2007 09:27:20 -0700 (PDT)
Message-ID: <9acccfe50707040927j163c998fsbb43f61185182ee9@mail.gmail.com>
Date: Wed, 4 Jul 2007 09:27:20 -0700
From: "Kevin O'Gorman" <kogorman@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Index to /usr/share/doc/...html... a reinvented wheel?
In-Reply-To: <20070704102830.10f2392f@osage.osagesoftware.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_142225_16952509.1183566440106"
References: <9acccfe50707031519w73abc638qb001cc5e9bb64d88@mail.gmail.com>
	 <20070704102830.10f2392f@osage.osagesoftware.com>
X-Archives-Salt: 9cdd0d81-7fb8-4be1-a2c5-381288885111
X-Archives-Hash: 3c0aa68c856c18eea407a3daa4c391d1

------=_Part_142225_16952509.1183566440106
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 7/4/07, David Relson <relson@osagesoftware.com> wrote:
>
> On Tue, 3 Jul 2007 15:19:14 -0700
> Kevin O'Gorman wrote:
>
> > I emerge with the doc USE flag and generally have a bunch of stuff in
> > /usr/share/doc.  Most of the time it's the HTML stuff I want to read,
> > but it's a annoyingly laborious to wade through unindexed
> > directgories and get a browser pointing to the right thing.  So I
> > wrote a little Perl script to create a top-level "index.html",
> > organized by package and with a bit of rudimentary pruning.  I
> > bookmarked it in Firefox, and can get to things a lot faster now.  I
> > like the result, and will continue to tweak it here and there.
> >
> > Did I just reinvent a wheel? If not, is there any point it trying to
> > make this part of gentoo?  If so, how would one do that?
> >
> > Current script attached.
> >
> > --
> > Kevin O'Gorman, PhD
>
> Hi Kevin,
>
> After saving your script to /var/www/localhost/cgi-bin/makeindex.perl
> and running "chmod +x ...", I pointed firefox at
> http://localhost/cgi-bin/makeindex.perl and got the following:
>
>     Internal Server Error
>
>     The server encountered an internal error or misconfiguration and
>     was unable to complete your request.
>
>     Please contact the server administrator, root@localhost and inform
>     them of the time the error occurred, and anything you might have
>     done that may have caused the error.
>
>     More information about this error may be available in the server
>     error log.
>
> Looking in /var/log/apache2/error_log I found
>
>     [Wed Jul 04 10:22:06 2007] [error] [client 127.0.0.1] malformed
> header from script. Bad header=<head><title>Index of /usr/sha:
> makeindex.perl
>
>
> Looking at other simple scripts lead me to add
>
>     print "Content-type: text/html; charset=iso-8859-1\n\n";
>
> All is good now!
>
> Cheers,
>
> David
> --
> gentoo-user@gentoo.org mailing list
>
>
Hmm.  I never intended to run it that way.  I run a cronjob as root, with
output directed to "index.html".  I'd worry that your way would be too slow.

-- 
Kevin O'Gorman, PhD

------=_Part_142225_16952509.1183566440106
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 7/4/07, <b class="gmail_sendername">David Relson</b> &lt;<a href="mailto:relson@osagesoftware.com">relson@osagesoftware.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 3 Jul 2007 15:19:14 -0700<br>Kevin O&#39;Gorman wrote:<br><br>&gt; I emerge with the doc USE flag and generally have a bunch of stuff in<br>&gt; /usr/share/doc.&nbsp;&nbsp;Most of the time it&#39;s the HTML stuff I want to read,
<br>&gt; but it&#39;s a annoyingly laborious to wade through unindexed<br>&gt; directgories and get a browser pointing to the right thing.&nbsp;&nbsp;So I<br>&gt; wrote a little Perl script to create a top-level &quot;index.html&quot;,
<br>&gt; organized by package and with a bit of rudimentary pruning.&nbsp;&nbsp;I<br>&gt; bookmarked it in Firefox, and can get to things a lot faster now.&nbsp;&nbsp;I<br>&gt; like the result, and will continue to tweak it here and there.<br>
&gt;<br>&gt; Did I just reinvent a wheel? If not, is there any point it trying to<br>&gt; make this part of gentoo?&nbsp;&nbsp;If so, how would one do that?<br>&gt;<br>&gt; Current script attached.<br>&gt;<br>&gt; --<br>&gt; Kevin O&#39;Gorman, PhD
<br><br>Hi Kevin,<br><br>After saving your script to /var/www/localhost/cgi-bin/makeindex.perl<br>and running &quot;chmod +x ...&quot;, I pointed firefox at<br><a href="http://localhost/cgi-bin/makeindex.perl">http://localhost/cgi-bin/makeindex.perl
</a> and got the following:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Internal Server Error<br><br>&nbsp;&nbsp;&nbsp;&nbsp;The server encountered an internal error or misconfiguration and<br>&nbsp;&nbsp;&nbsp;&nbsp;was unable to complete your request.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Please contact the server administrator, 
root@localhost and inform<br>&nbsp;&nbsp;&nbsp;&nbsp;them of the time the error occurred, and anything you might have<br>&nbsp;&nbsp;&nbsp;&nbsp;done that may have caused the error.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;More information about this error may be available in the server<br>
&nbsp;&nbsp;&nbsp;&nbsp;error log.<br><br>Looking in /var/log/apache2/error_log I found<br><br>&nbsp;&nbsp;&nbsp;&nbsp;[Wed Jul 04 10:22:06 2007] [error] [client <a href="http://127.0.0.1">127.0.0.1</a>] malformed<br>header from script. Bad header=&lt;head&gt;&lt;title&gt;Index of /usr/sha:
<br>makeindex.perl<br><br><br>Looking at other simple scripts lead me to add<br><br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;Content-type: text/html; charset=iso-8859-1\n\n&quot;;<br><br>All is good now!<br><br>Cheers,<br><br>David<br>--<br><a href="mailto:gentoo-user@gentoo.org">
gentoo-user@gentoo.org</a> mailing list<br><br></blockquote></div><br>Hmm.&nbsp; I never intended to run it that way.&nbsp; I run a cronjob as root, with output directed to &quot;index.html&quot;.&nbsp; I&#39;d worry that your way would be too slow.
<br clear="all"><br>-- <br>Kevin O&#39;Gorman, PhD<br>

------=_Part_142225_16952509.1183566440106--
-- 
gentoo-user@gentoo.org mailing list