On Saturday 25 April 2009 23:01:04 [email protected] wrote:

> Log:
> [tools] Make it possible to run the language shell generator outside the
> parrot build tree. Change it so the default isn't adding the new
> language under "languages/..." in Parrot's build directory, since that's
> not the common case anymore.

>--- trunk/tools/dev/mk_language_shell.pl       Sun Apr 26 02:58:03 2009        
>(r38363) 
> @@ -131,7 +133,7 @@
>  ##  build the initial makefile if no path was specified on command line
>  unless ($ARGV[1]) {
>    my $reconfigure = "$PConfig{perl} Configure.pl";
> -  system("cd languages && cd $lclang && $reconfigure");
> +  system("cd $lclang && $reconfigure");
>  }

I'm not sure this is portable.  How about:

        die "Couldn't chdir to '$lclang': $!\n" unless chdir $lclang;
        system( $PConfig{perl}, 'Configure.pl' );

-- c
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to