Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to run gen-ng-list

1 view
Skip to first unread message

Chris Ilias

unread,
May 17, 2007, 3:59:10 AM5/17/07
to
If I want to make an edit to the newsgroup list/descriptions at
<http://www.mozilla.org/community/developer-forums.html>, I need to edit
a text file, then run a script called "gen-ng-list", both found in the
same directory. I'd like to know how to run gen-ng-list; so I don't
bother Reed to do it every time.
--
Chris Ilias <http://ilias.ca>
List-owner: support-firefox, support-thunderbird
mozilla.test.multimedia moderator
(Please do not email me tech support questions)

Gervase Markham

unread,
May 17, 2007, 7:46:31 AM5/17/07
to
Chris Ilias wrote:
> If I want to make an edit to the newsgroup list/descriptions at
> <http://www.mozilla.org/community/developer-forums.html>, I need to edit
> a text file, then run a script called "gen-ng-list", both found in the
> same directory. I'd like to know how to run gen-ng-list; so I don't
> bother Reed to do it every time.

It's called gen-ng-info, and it's in the same directory
(mozilla-org/html/community/) as the data file you run it on and as
developer-forums.html.

It's a Perl script. You can tell this because the first line mentions
Perl. If you run it without parameters, it says:

gerv@otter:community$ perl gen-ng-info
Usage: gen-ng-info [inputfile] > [outputfile]

Which would imply that:

perl gen-ng-info raw-ng-list.txt > temp.html

would do the trick. You then cut and paste the contents of temp.html
into developer-forums.html.

Gerv

Chris Ilias

unread,
May 17, 2007, 11:23:49 AM5/17/07
to
On 17/05/2007 7:46 AM, _Gervase Markham_ spoke thusly:
> perl gen-ng-info raw-ng-list.txt > temp.html

I've never run a perl script before; but that line looked like a
something for Cygwin. I tried it in Cygwin, and it worked. Thanks.

My temp.html did end up with some odd line breaks in each h2. For instance:
<h2 id="testing
">Testing
</h2>

Gervase Markham

unread,
May 21, 2007, 5:23:06 AM5/21/07
to
Chris Ilias wrote:
> On 17/05/2007 7:46 AM, _Gervase Markham_ spoke thusly:
>> perl gen-ng-info raw-ng-list.txt > temp.html
>
> I've never run a perl script before; but that line looked like a
> something for Cygwin.

I carefully wrote it so that it would work in a DOS box too. :-)

> My temp.html did end up with some odd line breaks in each h2. For instance:
> <h2 id="testing
> ">Testing
> </h2>

No idea.

Gerv

0 new messages