@echo off if "%1" == "obj" goto obj if not "%1" == ""obj"" goto not_obj :obj if not "%GAMBUILD_VERBOSE%" == "yes" goto not_obj_verbose echo.type nul ^> "%BUILD_OBJ_OUTPUT_FILENAME_PARAM%" echo.for %%f in (%BUILD_OBJ_INPUT_FILENAMES_PARAM%) do type %%f ^>^> "%BUILD_OBJ_OUTPUT_FILENAME_PARAM%" :not_obj_verbose type nul > "%BUILD_OBJ_OUTPUT_FILENAME_PARAM%" for %%f in (%BUILD_OBJ_INPUT_FILENAMES_PARAM%) do type %%f >> "%BUILD_OBJ_OUTPUT_FILENAME_PARAM%" goto end :not_obj if "%1" == "dyn" goto dyn if not "%1" == ""dyn"" goto not_dyn :dyn if not "%GAMBUILD_VERBOSE%" == "yes" goto not_dyn_verbose echo.type nul ^> "%BUILD_DYN_OUTPUT_FILENAME_PARAM%" echo.for %%f in (%BUILD_DYN_INPUT_FILENAMES_PARAM%) do type %%f ^>^> "%BUILD_DYN_OUTPUT_FILENAME_PARAM%" :not_dyn_verbose type nul > "%BUILD_DYN_OUTPUT_FILENAME_PARAM%" for %%f in (%BUILD_DYN_INPUT_FILENAMES_PARAM%) do type %%f >> "%BUILD_DYN_OUTPUT_FILENAME_PARAM%" goto end :not_dyn if "%1" == "lib" goto lib if not "%1" == ""lib"" goto not_lib :lib if not "%GAMBUILD_VERBOSE%" == "yes" goto not_lib_verbose echo.echo BUILD_LIB not yet implemented :not_lib_verbose echo BUILD_LIB not yet implemented goto end :not_lib if "%1" == "exe" goto exe if not "%1" == ""exe"" goto not_exe :exe if not "%BUILD_EXE_BASE_LIBRARY_PARAM%" == "" goto not_exe_base_lib set "BUILD_EXE_BASE_LIB=%GAMBITDIR_LIB%\_gambit.java" goto exe_base_lib_done :not_exe_base_lib set "BUILD_EXE_BASE_LIB=%BUILD_EXE_BASE_LIBRARY_PARAM%.java" :exe_base_lib_done if not "%GAMBUILD_VERBOSE%" == "yes" goto not_exe_verbose ; TODO echo.echo.0^^^<0# : ^^^^^>"%BUILD_EXE_OUTPUT_FILENAME_PARAM%" echo.echo.'''^>^>"%BUILD_EXE_OUTPUT_FILENAME_PARAM%" ;echo.echo.@java -jar %%%%~f0 %%%%*^>^>"%BUILD_EXE_OUTPUT_FILENAME_PARAM%" echo.echo.@exit /b %%%%ERRORLEVEL%%%%^>^>"%BUILD_EXE_OUTPUT_FILENAME_PARAM%" echo.echo.'''^>^>"%BUILD_EXE_OUTPUT_FILENAME_PARAM%" :not_exe_verbose ; TODO echo.0^<0# : ^^>"%BUILD_EXE_OUTPUT_FILENAME_PARAM%" echo.'''>>"%BUILD_EXE_OUTPUT_FILENAME_PARAM%" ;echo.@java -jar %%~f0 %%*>>"%BUILD_EXE_OUTPUT_FILENAME_PARAM%" echo.@exit /b %%ERRORLEVEL%%>>"%BUILD_EXE_OUTPUT_FILENAME_PARAM%" echo.'''>>"%BUILD_EXE_OUTPUT_FILENAME_PARAM%" goto end :not_exe echo.gambuild-python.bat unknown operation "%1" exit /b 1 :end exit /b 0