Skip to content

Commit 4c55267

Browse files
committed
Updated install_ewf.bat to use the new "ecf_tool" from https://svn.eiffel.com/eiffelstudio/trunk/Src/tools/ecf_tool .
1 parent 25a362d commit 4c55267

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-4
lines changed

tools/bin/ecf_tool.bat

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
@echo off
2+
setlocal
3+
4+
if "%ECF_TOOL_PATH%" == "" goto LOCAL_ECF_TOOL
5+
goto start
6+
7+
:LOCAL_ECF_TOOL
8+
if exist "%~dp0ecf_tool.exe" set ECF_TOOL_PATH=%~dp0
9+
10+
if "%ECF_TOOL_PATH%" == "" goto SEARCH_ECF_TOOL
11+
goto START
12+
13+
:SEARCH_ECF_TOOL
14+
for %%f in (ecf_tool.exe) do (
15+
if exist "%%~dp$PATH:f" set ECF_TOOL_PATH="%%~dp$PATH:f"
16+
)
17+
if "%ECF_TOOL_PATH%" == "" goto BUILD_ECF_TOOL
18+
echo Using ecf_tool.exe from %ECF_TOOL_PATH%
19+
goto START
20+
21+
:BUILD_ECF_TOOL
22+
set TMP_SVN_CHECKOUT=%~dp0.tmp_ecf_tool
23+
call svn checkout https://svn.eiffel.com/eiffelstudio/trunk/Src/tools/ecf_tool %TMP_SVN_CHECKOUT%
24+
call ecb -config %~dp0.tmp_ecf_tool\ecf_tool.ecf -finalize -c_compile -project_path %TMP_SVN_CHECKOUT%
25+
copy %TMP_SVN_CHECKOUT%\EIFGENs\ecf_tool\F_code\ecf_tool.exe %~dp0ecf_tool.exe
26+
rd /q/s %TMP_SVN_CHECKOUT%
27+
28+
set ECF_TOOL_PATH=%~dp0
29+
goto START
30+
31+
:START
32+
echo Calling %ECF_TOOL_PATH%ecf_tool.exe %*
33+
call %ECF_TOOL_PATH%ecf_tool.exe %*
34+
goto END
35+
36+
:END
37+
endlocal

tools/install_ewf.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,16 @@ rem #--- Update ecf files ---#
126126
:ecf_updating
127127
cd %TMP_TARGET_DIR%
128128

129-
if -%ECF_UPDATER_PATH%- == -- goto use_bin_dir
130-
set TMP_ECF_UPDATER_CMD=%ECF_UPDATER_PATH%\ecf_updater.exe
129+
if -%ECF_TOOL_PATH%- == -- goto use_bin_dir
130+
set TMP_ECF_TOOL_CMD=%ECF_TOOL_PATH%\ecf_tool.exe
131131
goto call_ecf_update
132132

133133
:use_bin_dir
134-
set TMP_ECF_UPDATER_CMD=%~dp0\bin\ecf_updater.bat
134+
set TMP_ECF_TOOL_CMD=%~dp0\bin\ecf_tool.bat
135135
goto call_ecf_update
136136

137137
:call_ecf_update
138-
call %TMP_ECF_UPDATER_CMD% --force %2 %3 %4 %5 %6 %7 %8 %9 contrib
138+
call %TMP_ECF_TOOL_CMD% updater --root %TMP_TARGET_DIR% --force %2 %3 %4 %5 %6 %7 %8 %9 %TMP_TARGET_DIR%\contrib
139139

140140
:end
141141
del %TMP_EXCLUDE%

0 commit comments

Comments
 (0)