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/bin/script/indexes/relation.pl

    r1971 r24874  
    3838   
    3939    #get the httpprefix from gsdlsite.cfg
    40     open(CFG, "$gsdlhome/cgi-bin/gsdlsite.cfg")
    41     or die "$gsdlhome/cgi-bin/gsdlsite.cfg could not be opened";
     40    my $cgibin = "cgi-bin/$ENV{'GSDLOS'}";
     41    $cgibin = $cgibin.$ENV{'GSDLARCH'} if defined $ENV{'GSDLARCH';}
     42    open(CFG, "$gsdlhome/$cgibin/gsdlsite.cfg")
     43    or die "$gsdlhome/$cgibin/gsdlsite.cfg could not be opened";
    4244   
    4345    while(<CFG>){
Note: See TracChangeset for help on using the changeset viewer.