| 1 |
REM @ECHO off |
| 2 |
REM Converted from ecl_nsi.sh |
| 3 |
|
| 4 |
SETLOCAL |
| 5 |
|
| 6 |
SET source=%1 |
| 7 |
SET where=%2 |
| 8 |
CD %where% |
| 9 |
SET dest=ecl.nsi |
| 10 |
SET version=%3 |
| 11 |
|
| 12 |
type %source%1 | ..\c\cut.exe "@ECLDIR@" "%where%" "@ECLVERSION@" "%version%" > %dest% |
| 13 |
dir /b /a:-d | ..\c\cut.exe "ecl.exe" "/DELETE/" "ecl.nsi" "/DELETE/" "%where%\\" "" > ../aux_files |
| 14 |
dir /b /a:d | ..\c\cut.exe "ecl.exe" "/DELETE/" "ecl.nsi" "/DELETE/" "%where%\\" "" > ../aux_dirs |
| 15 |
echo HOLA |
| 16 |
for /f %%i in (../aux_dirs) do @echo %%i |
| 17 |
for /f %%i in (../aux_dirs) do @echo File /r "${ECLDIR}\%%i" >> %dest% |
| 18 |
for /f %%i in (../aux_files) do @echo File "${ECLDIR}\%%i" >> %dest% |
| 19 |
if exist ecl.exe.manifest @echo File "${ECLDIR}\ecl.exe.manifest" >> %dest% |
| 20 |
type %source%2 >> %dest% |
| 21 |
if exist ecl.exe.manifest @echo Delete "${ECLDIR}\ecl.exe.manifest" >> %dest% |
| 22 |
for /f %%i in (../aux_files) do @echo Delete "$INSTDIR\%%i" >> %dest% |
| 23 |
for /f %%i in (../aux_dirs) do @echo RMDir /r "$INSTDIR\%%i" >> %dest% |
| 24 |
type %source%3 >> %dest% |
| 25 |
ENDLOCAL |