File tree Expand file tree Collapse file tree 2 files changed +41
-4
lines changed Expand file tree Collapse file tree 2 files changed +41
-4
lines changed Original file line number Diff line number Diff line change 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 " %~dp0 ecf_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 %~dp0 ecf_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
Original file line number Diff line number Diff line change @@ -126,16 +126,16 @@ rem #--- Update ecf files ---#
126126:ecf_updating
127127cd %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
131131goto 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
135135goto 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
141141del %TMP_EXCLUDE%
You can’t perform that action at this time.
0 commit comments