Changeset 34955 for other-projects
- Timestamp:
- 2021-03-02T15:20:09+13:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nightly-tasks/diffcol/trunk/diffcol/gdbdiff.pm
r34954 r34955 41 41 my $db_cmd = "db2txt -sort $db_file 2>&1"; 42 42 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"; 45 45 } 46 46 … … 54 54 55 55 # 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);59 56 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 } 60 67 return &read_db("$db_filename"); 61 68 } … … 278 285 print_string_to_file($model_text, $savepath.$dbname."_model.out"); 279 286 } 280 287 281 288 my $report_type = "OldStyle"; # Can not change this type. 282 289 my $diff_gdb = diff \$model_text, \$test_text, { STYLE => $report_type };
Note:
See TracChangeset
for help on using the changeset viewer.