Ignore:
Timestamp:
2011-12-09T18:25:27+13:00 (12 years ago)
Author:
ak19
Message:

Third set of commits to do with the migration of cgi-bin into common-src, so that upon make install, common-src\cgi-bin will be installed in cgi-bin\GSDLOS(GSDLARCH). The first commit was of changes to files in cgi-bin itself. The second commit was moving cgi-bin. This one involves changes to all the files referring to cgi-bin where this needs to be changed to cgi-bin\OS_and_ARCH.

File:
1 edited

Legend:

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

    r24832 r24874  
    14861486}
    14871487
     1488sub os_dir() {
     1489   
     1490    my $gsdlarch = "";
     1491    if(defined $ENV{'GSDLARCH'}) {
     1492    $gsdlarch = $ENV{'GSDLARCH'};
     1493    }
     1494    return $ENV{'GSDLOS'}.$gsdlarch;
     1495}
    14881496
    14891497# Returns the greenstone URL prefix extracted from the appropriate GS2/GS3 config file.
     
    15031511    } else {
    15041512    $defaultUrlprefix = "/greenstone";
    1505     $configfile = &util::filename_cat($ENV{'GSDLHOME'}, "cgi-bin", "gsdlsite.cfg");
     1513    $configfile = &util::filename_cat($ENV{'GSDLHOME'}, "cgi-bin", &os_dir(), "gsdlsite.cfg");
    15061514    push(@propertynames, (qw/\nhttpprefix/, qw/\ngwcgi/)); # inspect one property then the other
    15071515    }
Note: See TracChangeset for help on using the changeset viewer.