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
|
||||
59
tools/install_ewf.bat
Normal file
59
tools/install_ewf.bat
Normal file
@@ -0,0 +1,59 @@
|
||||
@echo off
|
||||
setlocal
|
||||
set TMP_EXCLUDE=%~dp0.install_ewf-copydir-exclude
|
||||
set COPYCMD= xcopy /EXCLUDE:%TMP_EXCLUDE% /I /E /Y
|
||||
set TMP_DIR=%~dp0..
|
||||
|
||||
echo EIFGENs > %TMP_EXCLUDE%
|
||||
echo .git >> %TMP_EXCLUDE%
|
||||
echo .svn >> %TMP_EXCLUDE%
|
||||
|
||||
set TMP_TARGET_DIR=%1
|
||||
if -%TMP_TARGET_DIR%- == -- goto use_eiffel_library
|
||||
goto start
|
||||
|
||||
:use_eiffel_library
|
||||
if -%EIFFEL_LIBRARY%- == -- goto use_ise_library
|
||||
set TMP_TARGET_DIR=%EIFFEL_LIBRARY%
|
||||
goto start
|
||||
|
||||
:use_ise_library
|
||||
set TMP_TARGET_DIR=%ISE_LIBRARY%
|
||||
goto start
|
||||
|
||||
:start
|
||||
echo Install framework ewf
|
||||
mkdir %TMP_TARGET_DIR%\contrib\library\web\framework\ewf\ewsgi
|
||||
echo Install library: ewf/ewsgi
|
||||
%COPYCMD% %TMP_DIR%\library\server\ewsgi %TMP_TARGET_DIR%\contrib\library\web\framework\ewf\ewsgi
|
||||
echo Install library: ewf/libfcgi
|
||||
%COPYCMD% %TMP_DIR%\library\server\libfcgi %TMP_TARGET_DIR%\\contrib\library\web\framework\ewf\libfcgi
|
||||
echo Install library: ewf/wsf
|
||||
%COPYCMD% %TMP_DIR%\library\server\wsf %TMP_TARGET_DIR%\contrib\library\web\framework\ewf\wsf
|
||||
echo Install library: ewf/wsf_extension
|
||||
%COPYCMD% %TMP_DIR%\library\server\wsf_extension %TMP_TARGET_DIR%\contrib\library\web\framework\ewf\wsf_extension
|
||||
echo Install library: ewf/encoding
|
||||
%COPYCMD% %TMP_DIR%\library\text\encoder %TMP_TARGET_DIR%\contrib\library\web\framework\ewf\text\encoding
|
||||
|
||||
echo Install examples
|
||||
%COPYCMD% %TMP_DIR%\examples %TMP_TARGET_DIR%\examples\ewf
|
||||
|
||||
echo Install library: error
|
||||
%COPYCMD% %TMP_DIR%\library\error %TMP_TARGET_DIR%\library\utility\general\error
|
||||
echo Install library: http_client
|
||||
%COPYCMD% %TMP_DIR%\library\client\http_client %TMP_TARGET_DIR%\library\network\http_client
|
||||
echo Install library: http
|
||||
%COPYCMD% %TMP_DIR%\library\protocol\http %TMP_TARGET_DIR%\library\network\protocol\http
|
||||
echo Install library: uri_template
|
||||
%COPYCMD% %TMP_DIR%\library\protocol\uri_template %TMP_TARGET_DIR%\library\text\parser\uri_template
|
||||
|
||||
echo Install contrib library: nino
|
||||
%COPYCMD% %TMP_DIR%\contrib\library\server\nino %TMP_TARGET_DIR%\contrib\library\network\server\nino
|
||||
|
||||
cd %TMP_TARGET_DIR%
|
||||
call %~dp0\bin\ecf_updater.bat --force --backup --verbose --diff --ise_library .
|
||||
rem ecf_updater --force --backup --verbose --diff %TMP_TARGET_DIR%
|
||||
|
||||
:end
|
||||
del %TMP_EXCLUDE%
|
||||
|
||||
37
tools/uninstall_ewf.bat
Normal file
37
tools/uninstall_ewf.bat
Normal file
@@ -0,0 +1,37 @@
|
||||
@echo off
|
||||
setlocal
|
||||
set RDCMD= rd /q/s
|
||||
|
||||
set TMP_TARGET_DIR=%1
|
||||
if -%TMP_TARGET_DIR%- == -- goto use_eiffel_library
|
||||
goto start
|
||||
|
||||
:use_eiffel_library
|
||||
if -%EIFFEL_LIBRARY%- == -- goto use_ise_library
|
||||
set TMP_TARGET_DIR=%EIFFEL_LIBRARY%
|
||||
goto start
|
||||
|
||||
:use_ise_library
|
||||
set TMP_TARGET_DIR=%ISE_LIBRARY%
|
||||
goto start
|
||||
|
||||
:start
|
||||
echo Uninstall framework: ewf
|
||||
%RDCMD% %TMP_TARGET_DIR%\contrib\library\web\framework\ewf
|
||||
|
||||
echo Uninstall ewf examples
|
||||
%RDCMD% %TMP_TARGET_DIR%\examples\ewf
|
||||
|
||||
echo Uninstall library: error
|
||||
%RDCMD% %TMP_TARGET_DIR%\library\utility\general\error
|
||||
echo Uninstall library: http_client
|
||||
%RDCMD% %TMP_TARGET_DIR%\library\network\http_client
|
||||
echo Uninstall library: http
|
||||
%RDCMD% %TMP_TARGET_DIR%\library\network\protocol\http
|
||||
echo Uninstall library: uri_template
|
||||
%RDCMD% %TMP_TARGET_DIR%\library\text\parser\uri_template
|
||||
|
||||
echo Uninstall contrib library: nino
|
||||
%RDCMD% %TMP_TARGET_DIR%\contrib\library\network\server\nino
|
||||
|
||||
:end
|
||||
Reference in New Issue
Block a user