Changeset 32420 for main

Show
Ignore:
Timestamp:
03.09.2018 16:30:26 (10 months ago)
Author:
ak19
Message:

Improved way of finding OS bitness from bat, even though currently unused

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/setup.bat

    r32209 r32420  
    254254::   containing "PROCESSOR_ARCHITECTURE", splits this line on the delimiter "=" and stores the 2nd token in %%G 
    255255::   Based on the example "_ping_cmd" at https://ss64.com/nt/for_cmd.html 
    256 REM for /f "tokens=2 delims==" %%G in ('set Processor ^|find "PROCESSOR_ARCHITECTURE"') do set BITNESS=%%G 
     256:: REM for /f "tokens=2 delims==" %%G in ('set Processor ^|find "PROCESSOR_ARCHITECTURE"') do set BITNESS=%%G 
     257:: Easier way to above: %PROCESSOR_ARCHITECTURE% already contains a value of amd64/x64 or x86. So don't need to run the "set Processor" 
     258:: command and hunt for PROCESSOR_ARCHITECTURE line. See https://superuser.com/questions/321988/how-do-i-determine-if-my-windows-is-32-bit-or-64-bit-using-a-command 
     259REM set BITNESS=%PROCESSOR_ARCHITECTURE% 
    257260::   BITNESS will now be "x86" for 32 bit or something like "amd64" or "x64" for 64 bit 
    258261:: From https://ss64.com/nt/syntax-substring.html 
     
    261264REM if /i "%BITNESS:64=%" == "%BITNESS%" (set BITNESS=32) else (set BITNESS=64) 
    262265 
     266 
    263267popd 
    264268endlocal & set PATH=%PATH%& set GSDLHOME=%GSDLHOME%& set GSDLOS=%GSDLOS%& set JRE_HOME=%JRE_HOME%& set JAVA_HOME=%JAVA_HOME%