Ignore:
Timestamp:
2009-11-12T14:41:39+13:00 (14 years ago)
Author:
oranfry
Message:

modifications to environment vars LD_LIBRARY_PATH and PATH relating to wvWare on linux to be done in a narrower scope. this also fixes a probable bug which would have stopped the newer wvWare being used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/gsConvert.pl

    r19763 r20933  
    494494    ($input_filename, $output_filestem) = @_;
    495495
    496     my $wvWare = &util::filename_cat($ENV{'GSDLHOME'}, "bin",
    497                      $ENV{'GSDLOS'}, "wvWare");
     496    my $wvWare = &util::filename_cat($ENV{'GSDLHOME'}, "bin", $ENV{'GSDLOS'}, "wvWare");
     497
     498    if ( -d "$ENV{'GSDLHOME'}/bin/$ENV{'GSDLOS'}/wv" && $ENV{'GSDLOS'} eq "linux" ) {
     499        $ENV{'PATH'} = "$ENV{'GSDLHOME'}/bin/$ENV{'GSDLOS'}/wv/bin:$ENV{'PATH'}";
     500        $ENV{'LD_LIBRARY_PATH'} = "$ENV{'GSDLHOME'}/bin/$ENV{'GSDLOS'}/wv/lib:$ENV{'LD_LIBRARY_PATH'}";
     501        $wvWare = &util::filename_cat($ENV{'GSDLHOME'}, "bin", $ENV{'GSDLOS'}, "wv", "bin", "wvWare");
     502    }
    498503
    499504    # don't include path on windows (to avoid having to play about
Note: See TracChangeset for help on using the changeset viewer.