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/mgppbuilder.pm

    r28215 r28375  
    180180   
    181181    my $osextra = "";
    182     if ($ENV{'GSDLOS'} =~ /^windows$/i) {
     182    if (($ENV{'GSDLOS'} =~ /^windows$/i) && ($^O ne "cygwin")) {
    183183    $fulltextprefix =~ s@/@\\@g;
    184184    }
     
    419419
    420420    my $osextra = "";
    421     if ($ENV{'GSDLOS'} =~ /^windows$/i) {
     421    if (($ENV{'GSDLOS'} =~ /^windows$/i) && ($^O ne "cygwin")) {
    422422    $fullindexprefix =~ s@/@\\@g;
    423423    } else {
Note: See TracChangeset for help on using the changeset viewer.