build/buildutils/omake.bat
changeset 78 71ad690e91f5
parent 21 2a9601315dfc
child 80 d6dafc5d983f
equal deleted inserted replaced
72:1f0034e370aa 78:71ad690e91f5
    12 rem 
    12 rem 
    13 rem  Contributors:
    13 rem  Contributors:
    14 rem 
    14 rem 
    15 rem  Description: Helper utility for building by developers
    15 rem  Description: Helper utility for building by developers
    16 rem 
    16 rem 
       
    17 
    17 rem -------------------
    18 rem -------------------
    18 rem Determine java root
    19 rem Determine java root
    19 setlocal
    20 setlocal
    20 set JAVA_SRC_ROOT=
    21 set JAVA_SRC_ROOT=
       
    22 
       
    23 rem See if we are within jrt package (indepent of actual location)
    21 for %%a in (. .. ..\.. ..\..\.. ..\..\..\.. ..\..\..\..\.. ..\..\..\..\..\.. ..\..\..\..\..\..\..) do if "%JAVA_SRC_ROOT%" == "" if exist %%a\build\Makefile.comp call :setroot %%a
    24 for %%a in (. .. ..\.. ..\..\.. ..\..\..\.. ..\..\..\..\.. ..\..\..\..\..\.. ..\..\..\..\..\..\..) do if "%JAVA_SRC_ROOT%" == "" if exist %%a\build\Makefile.comp call :setroot %%a
       
    25 if not "%JAVA_SRC_ROOT%" == "" goto resolved
    22 
    26 
       
    27 rem See if we are within jrtext package co-located with jrt (indepent of actual location)
       
    28 for %%a in (. .. ..\.. ..\..\.. ..\..\..\.. ..\..\..\..\.. ..\..\..\..\..\.. ..\..\..\..\..\..\..) do if "%JAVA_SRC_ROOT%" == "" if "%%~nxa" == "jrtext" if exist %%a\build\omj.pri if exist %%a\..\jrt\build\Makefile.comp call :setroot %%a\..\jrt
       
    29 if not "%JAVA_SRC_ROOT%" == "" goto resolved
       
    30 
       
    31 rem See if this is subdirectory within \ext\app\jrtext
       
    32 if "%JAVA_SRC_ROOT%" == "" for /F "delims=\ tokens=2-4" %%a in ("%CD%") do if "%%a\%%b\%%c" == "ext\app\jrtext" set JAVA_SRC_ROOT=\sf\app\jrt
       
    33 if not "%JAVA_SRC_ROOT%" == "" goto :resolved
       
    34 
       
    35 echo Could not determine JAVA_SRC_ROOT.
       
    36 goto :EOF
       
    37 
       
    38 
       
    39 :resolved
    23 echo JAVA_SRC_ROOT=%JAVA_SRC_ROOT%
    40 echo JAVA_SRC_ROOT=%JAVA_SRC_ROOT%
    24 
    41 
    25 rem Make sbs to flush stdout immediately
    42 rem Make sbs to flush stdout immediately
    26 set PYTHONUNBUFFERED=True
    43 set PYTHONUNBUFFERED=True
    27 
    44