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

include perl 6 files in config

6 views
Skip to first unread message

Gerd Pokorra

unread,
Nov 8, 2004, 9:43:20 AM11/8/04
to perl6-i...@perl.org


Hello,

in the parrot distribution I would like to have the first line from
the file parrot-0.1.1/languages/perl6/perl6 from

#! perl

changed to

#!/usr/bin/perl
use lib '/parrot_source_dir/parrot-0.1.1/languages/perl6';


So that /usr/bin/perl reflect the perl 5 executable and
/parrot_source_dir/parrot-0.1.1/languages/perl6 is the
place of the perl6 directory. So that I can execute the perl6
program from every place.

There for I created the two files in the parrot distribution:

config/gen/perl6.pl
#! perl -w

package Configure::Step;

use strict;
use vars qw($description @args);
use Cwd qw(cwd);
use Parrot::Configure::Step ':gen';

$description="Generating perl6 file...";
@args=qw();

sub runstep {
Configure::Data->set(cwd => cwd());
genfile('config/gen/perl6.in', 'languages/perl6/perl6');
chmod 0755, 'languages/perl6/perl6';
}

1;


and the file config/gen/perl6.pl
#!${perl}
use lib '${cwd}${slash}languages${slash}perl6';
#
# perl6 driver: parse assemble compile and run .p6 files
#
... the original contents follows


In the file lib/Parrot/Configure/RunSteps.pm I add after the line 63:
gen/perl6.pl


So that the generation will be executed.

Would you add this to the distribution.


Best wishes,

Gerd Pokorra


E-Mail: pok...@uni-siegen.de

0 new messages