Ignore:
Timestamp:
2012-10-02T05:43:31+13:00 (12 years ago)
Author:
davidb
Message:

Some mods that resulted from testing under Cygwin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/music-ir-src/trunk/perllib/plugins/jSongMinerExtractor.pm

    r24432 r26276  
    176176    elsif (chdir($jmir_directory)) {
    177177
     178    my $source_file_path_os = $source_file_path;
     179    if ($^O eq "cygwin") {
     180        $source_file_path_os = `cygpath -w "$source_file_path"`;
     181        $source_file_path_os =~ s/\s+$//;
     182    }
     183    my $target_txt_file_path_os = $target_txt_file_path;
     184    if ($^O eq "cygwin") {
     185        $target_txt_file_path_os = `cygpath -w "$target_txt_file_path"`;
     186        $target_txt_file_path_os =~ s/\s+$//;
     187    }
     188    my $target_acexml_file_path_os = $target_acexml_file_path;
     189    if ($^O eq "cygwin") {
     190        $target_acexml_file_path_os = `cygpath -w "$target_acexml_file_path"`;
     191        $target_acexml_file_path_os =~ s/\s+$//;
     192    }
    178193
    179194    my $jsongminer_cmd = "java -Xmx1024M -jar jSongMiner.jar $convert_options";
    180     $jsongminer_cmd .= " -title \"$id3_title\"";
    181     $jsongminer_cmd .= " -artist \"$id3_artist\"";
    182     $jsongminer_cmd .= " -audio \"$source_file_path\"";
    183     $jsongminer_cmd .= " -savetxtfile \"$target_txt_file_path\"";
    184     $jsongminer_cmd .= " -saveacexmlfile \"$target_acexml_file_path\"";
     195    $jsongminer_cmd .= " -title \"$id3_title\"" if defined $id3_title;
     196    $jsongminer_cmd .= " -artist \"$id3_artist\"" if defined $id3_artist;
     197    $jsongminer_cmd .= " -audio \"$source_file_path_os\"";
     198    $jsongminer_cmd .= " -savetxtfile \"$target_txt_file_path_os\"";
     199    $jsongminer_cmd .= " -saveacexmlfile \"$target_acexml_file_path_os\"";
    185200   
    186201    if ($verbosity>2) {
Note: See TracChangeset for help on using the changeset viewer.