Ignore:
Timestamp:
2013-10-10T13:57:59+13:00 (11 years ago)
Author:
davidb
Message:

A set of changes to help Greenstone building code (perl) run under Cygwin. The test is designed to be mutually to when run natively on Windows. In effect the refined test is saying: if you're windows but not cygwin then do as you used to do for Windows, otherwise go with Unix (as Cygwin is effectively giving you a Unix like operating system to run in)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/mgbuilder.pm

    r28215 r28375  
    139139
    140140    my $osextra = "";
    141     if ($ENV{'GSDLOS'} =~ /^windows$/i) {
     141    if (($ENV{'GSDLOS'} =~ /^windows$/i) && ($^O ne "cygwin")) {
    142142    $fulltextprefix =~ s@/@\\@g;
    143143    } else {
     
    354354
    355355    my $osextra = "";
    356     if ($ENV{'GSDLOS'} =~ /^windows$/i) {
     356    if (($ENV{'GSDLOS'} =~ /^windows$/i) && ($^O ne "cygwin")) {
    357357    $fullindexprefix =~ s@/@\\@g;
    358358    } else {
Note: See TracChangeset for help on using the changeset viewer.