Changeset 19310

Show
Ignore:
Timestamp:
01.05.2009 20:24:49 (10 years ago)
Author:
ak19
Message:

1. client-gli.bat now looks for Perl if client-gli contains a gs2build directory. Only if Perl is found will it launch client-GLI in a mode that enables the GLI Download Panel (so that downloading can be done locally). Therefore, if there's a gs2build dir inside client-gli AND Perl is found, then the client-gli.bat script now launches GLI with both -gsdl and -perl options set now, so that the Download Panel becomes available in the client-gli. To make this work in a Release of client-gli, need to make sure that it contains gs2build, and--additionally for Windows--that it contains winbin.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/client-gli.bat

    r19307 r19310  
    6060if "%GLILANG%" == "ru" echo â® - ᢮¡®€­® à á¯à®áâ࠭塞®¥ ¯à®£à ¬¬­®¥ ®¡¥á¯¥ç¥­š¥ š ‚ë ¬®Š¥â¥ à á¯à®áâà ­ïâì ¥£® 
    6161 
     62 
     63:: If there's a gs2build directory is nested inside client-gli, then we  
     64:: can download and build locally, but ONLY if we have perl. Else building 
     65:: will have to be done remotely. If Perl is found, PERLPATH will be set. 
     66if not exist gs2build\nul goto :findJava 
     67    call findperl.bat 
    6268 
    6369:findJava 
     
    167173 
    168174 
    169 :: if there is a gs2build directory inside client-gli, set the gsdl flag to it 
    170 if not exist gs2build\nul goto :nogsdl 
    171     "%JAVAPATH%\java" -Xmx128M -cp classes/;GLI.jar;lib/apache.jar;lib/qfslib.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone -gsdl %~dp0gs2build %1 %2 %3 %4 %5 %6 %7 %8 %9 
     175:: If there was a gs2build directory inside the client-gli folder, we'd have looked for Perl. 
     176:: If we had found Perl, PERLPATH would have been set. If no perl, can't download or build locally 
     177:: on the client side. If we have Perl, pass the gs2build dir with the -gsdl flag and the PERLPATH. 
     178if "%PERLPATH%" == "" goto :nogsdl 
     179    "%JAVAPATH%\java" -Xmx128M -cp classes/;GLI.jar;lib/apache.jar;lib/qfslib.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone -gsdl %~dp0gs2build -perl %PERLPATH% %1 %2 %3 %4 %5 %6 %7 %8 %9 
    172180    goto finish 
    173181 
     
    188196:done 
    189197:: ---- Clean up ---- 
     198set PERLPATH= 
    190199set JAVAPATH= 
    191200popd