Changeset 19961 for util

Show
Ignore:
Timestamp:
02/20/08 18:55:35 (9 months ago)
Author:
gwern
Message:

Update GHC 6.8.1 notes with my observations;
Add myself to AUTHORS;
Add my favorite book series to READTHEM;
Revamp the Pugs.cabal.in. This includes formatting, additional metadata, and adds a dependency on a more recent bytestring (to work with all the preceding patches), and also a Cabal, because we need that oldtime section syntax... for compatibility with GHC 6.6 & 6.8
Remove a regexp from util/build_pugs.pl because we can't have backwards compatbility with that old Cabals if we want 6.8.x as well, so it merely messes up the generated Cabal file.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/build_pugs.pl

    r17057 r19961  
    4747    my $thispugs = { @{ $opts->{GEN_PRELUDE} } }->{'--pugs'} or # laugh at me now. 
    4848        die "$0: no pugs passed in _+GEN_PRELUDE segment"; 
    49      
     49 
    5050    if ( grep '--precompile-prelude', @{ $opts->{GEN_PRELUDE} } ) { 
    5151        $PugsBuild::Config::Conf->{'precompile_prelude'} 
     
    5757    my ($version, $ghc, $ghc_pkg, $ghc_version, $setup, @args) = @{$opts->{GHC}}; 
    5858 
    59     $want_profiling = grep { /^-prof$/ } @args;  
    60     @args = grep { !/^-prof$/ } @args;  
     59    $want_profiling = grep { /^-prof$/ } @args; 
     60    @args = grep { !/^-prof$/ } @args; 
    6161 
    6262    # Set heap options via environment here; Win32 needs it instead 
    63     # of setting on GHC flags line.  
     63    # of setting on GHC flags line. 
    6464    my @rts_args; 
    6565    foreach my $arg (@args) { 
     
    171171            # Judy at this moment wants GNU make. 
    172172            $make = 'gmake' unless `$make --version` =~ /GNU/; 
    173              
     173 
    174174            system("./configure") unless -e "src/Makefile"; 
    175175            #system("$make clean"); 
     
    266266        glob("$archive_dir/*/*/*.a"), 
    267267    ); 
    268      
     268 
    269269    my @o_files = map { glob("third-party/judy/Judy-1.0.3/src/$_/*.o"), } 
    270270                        qw( Judy1 JudyHS JudyCommon JudyL JudySL ); 
     
    272272    print "Embedding @o_files into @archive_files\n"; 
    273273    system($AR_EXE, "-r", $_, @o_files) for @archive_files; 
    274    
     274 
    275275    if ($Config{ranlib} ne ':') { 
    276276        system(split(/ /,$Config{ranlib}), $_) for @archive_files; 
     
    321321        # also, remove all .pm.yml files there too. 
    322322        unlink($_) for glob(File::Spec->catfile(dirname($ppc_yml), "*.pm.yml")); 
    323          
     323 
    324324        # finally regenerate the prelude. 
    325325        run($^X, qw<util/gen_prelude.pl -v -i src/perl6/Prelude.pm>, 
     
    354354    # Add GHC to PATH 
    355355    local $ENV{PATH} = dirname($ghc) . $Config{path_sep} . $ENV{PATH}; 
    356   
     356 
    357357    run($^X, qw<util/version_h.pl>); 
    358358 
     
    505505} 
    506506 
    507 sub write_buildinfo {  
     507sub write_buildinfo { 
    508508    my ($version, $ghc, $ghc_pkg, $ghc_version, @args) = @_; 
    509509 
     
    557557    while (<IN>) { 
    558558        # Adjust the dependency line based on Cabal version 
    559         if ($has_new_cabal) { 
    560             s/hs-source-dir/hs-source-dirs/; 
    561         } 
    562         else { 
    563             s/pugs-HsSyck -any, //; 
    564             s/pugs-hsregex -any, //; 
    565         } 
     559        s/pugs-HsSyck -any, //; 
     560        s/pugs-hsregex -any, //; 
    566561        s/__OPTIONS__/@args/; 
    567562        s/__VERSION__/$version/; 
     
    585580        $kind = $1,  next if /^_\+(.*)/;        # _+SEGMENT start 
    586581        undef $kind, next if $_ eq "_-$kind";   # _-SEGMENT end 
    587          
     582 
    588583        s/^__(.*)__$/PugsBuild::Config->lookup($1)/e; 
    589          
     584 
    590585        die "don't know where this option belongs: $_" unless $kind; 
    591586        push @{ $opts{$kind} }, $_;