Added temporary scripts to install EWF on Windows
This commit is contained in:
34
tools/bin/ecf_builder.bat
Normal file
34
tools/bin/ecf_builder.bat
Normal file
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set ECF_BUILDER_PATH=
|
||||
if exist "%~dp0ecf_builder.exe" set ECF_BUILDER_PATH=%~dp0
|
||||
|
||||
if "%ECF_BUILDER_PATH%" == "" goto SEARCH_ECF_BUILDER
|
||||
goto START
|
||||
|
||||
:SEARCH_ECF_BUILDER
|
||||
rem for %%f in (ecf_builder.exe) do (
|
||||
rem if exist "%%~dp$PATH:f" set ECF_BUILDER_PATH="%%~dp$PATH:f"
|
||||
rem )
|
||||
if "%ECF_BUILDER_PATH%" == "" goto BUILD_ECF_BUILDER
|
||||
echo Using ecf_builder.exe from %ECF_BUILDER_PATH%
|
||||
goto START
|
||||
|
||||
:BUILD_ECF_BUILDER
|
||||
set TMP_SVN_CHECKOUT=%~dp0.tmp_ecf_builder
|
||||
call svn checkout https://svn.eiffel.com/eiffelstudio/trunk/Src/tools/ecf_builder %TMP_SVN_CHECKOUT%
|
||||
call ecb -config %~dp0.tmp_ecf_builder\ecf_builder.ecf -finalize -c_compile -project_path %TMP_SVN_CHECKOUT%
|
||||
copy %TMP_SVN_CHECKOUT%\EIFGENs\ecf_builder\F_code\ecf_builder.exe %~dp0ecf_builder.exe
|
||||
rd /q/s %TMP_SVN_CHECKOUT%
|
||||
|
||||
set ECF_BUILDER_PATH=%~dp0
|
||||
goto START
|
||||
|
||||
:START
|
||||
echo Calling %ECF_BUILDER_PATH%ecf_builder.exe %*
|
||||
call %ECF_BUILDER_PATH%ecf_builder.exe %*
|
||||
goto END
|
||||
|
||||
:END
|
||||
endlocal
|
||||
34
tools/bin/ecf_updater.bat
Normal file
34
tools/bin/ecf_updater.bat
Normal file
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set ECF_UPDATER_PATH=
|
||||
if exist "%~dp0ecf_updater.exe" set ECF_UPDATER_PATH=%~dp0
|
||||
|
||||
if "%ECF_UPDATER_PATH%" == "" goto SEARCH_ECF_UPDATER
|
||||
goto START
|
||||
|
||||
:SEARCH_ECF_UPDATER
|
||||
for %%f in (ecf_updater.exe) do (
|
||||
if exist "%%~dp$PATH:f" set ECF_UPDATER_PATH="%%~dp$PATH:f"
|
||||
)
|
||||
if "%ECF_UPDATER_PATH%" == "" goto BUILD_ECF_UPDATER
|
||||
echo Using ecf_updater.exe from %ECF_UPDATER_PATH%
|
||||
goto START
|
||||
|
||||
:BUILD_ECF_UPDATER
|
||||
set TMP_SVN_CHECKOUT=%~dp0.tmp_ecf_updater
|
||||
call svn checkout https://svn.eiffel.com/eiffelstudio/trunk/Src/tools/ecf_updater %TMP_SVN_CHECKOUT%
|
||||
call ecb -config %~dp0.tmp_ecf_updater\ecf_updater.ecf -finalize -c_compile -project_path %TMP_SVN_CHECKOUT%
|
||||
copy %TMP_SVN_CHECKOUT%\EIFGENs\ecf_updater\F_code\ecf_updater.exe %~dp0ecf_updater.exe
|
||||
rd /q/s %TMP_SVN_CHECKOUT%
|
||||
|
||||
set ECF_UPDATER_PATH=%~dp0
|
||||
goto START
|
||||
|
||||
:START
|
||||
echo Calling %ECF_UPDATER_PATH%ecf_updater.exe %*
|
||||
call %ECF_UPDATER_PATH%ecf_updater.exe %*
|
||||
goto END
|
||||
|
||||
:END
|
||||
endlocal
|
||||
Reference in New Issue
Block a user