Changeset 34955 for other-projects


Ignore:
Timestamp:
2021-03-02T15:20:09+13:00 (3 years ago)
Author:
anupama
Message:

Some local changes on the 64 bit linux that I'd created long back to start supporting the incomplete work of diffcol for GS3 installations as well. It should be possible to commit this as it ought not to affect GS2, as these code changes are present in the 64 bit linux' diffcol task and don't affect diffcol there as they're not in effect. Hopefully shouldn't break anything when diffcol.pl is svn updated on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/diffcol/gdbdiff.pm

    r34954 r34955  
    4141    my $db_cmd = "db2txt -sort $db_file 2>&1";
    4242    if($db_file =~ m/\.jdb$/) {
    43     print STDERR "NOT YET IMPLEMENTED\n";
    44     #$db_cmd = "jdb2txt -sort $db_file 2>&1";
     43    my $runperl = ($ENV{'GSDLOS'} =~ m/windows/) ? "perl -S" : "";
     44    $db_cmd = "$runperl jdb2txt.pl -sort $db_file";
    4545    }
    4646
     
    5454
    5555    # http://stackoverflow.com/questions/1909262/how-can-i-pipe-input-into-a-java-command-from-perl
    56     open PIPE, "| txt2db $db_filename";
    57     print PIPE "$db_text";
    58     close(PIPE);
    5956   
     57    if($db_filename =~ m/\.jdb$/) {
     58    my $runperl = ($ENV{'GSDLOS'} =~ m/windows/) ? "perl -S" : "";
     59    open PIPE, "| $runperl txt2jdb.pl $db_filename";
     60    print PIPE "$db_text";
     61    close(PIPE);
     62    } else {
     63    open PIPE, "| txt2db $db_filename";
     64    print PIPE "$db_text";
     65    close(PIPE);
     66    }
    6067    return &read_db("$db_filename");
    6168}
     
    278285    print_string_to_file($model_text, $savepath.$dbname."_model.out");
    279286    }
    280    
     287
    281288    my $report_type = "OldStyle"; # Can not change this type.
    282289    my $diff_gdb = diff \$model_text, \$test_text, { STYLE => $report_type };
Note: See TracChangeset for help on using the changeset viewer.