The setup package script works again.

This commit is contained in:
Glen De Cauwsemaecker 2014-03-24 04:04:51 +01:00
parent 7e7d3ed988
commit 7a984b4988

View file

@ -5,26 +5,11 @@ setlocal EnableDelayedExpansion
set "ZU-app=batch\utilities\7za.exe"
set "title=coco-dev-win-setup"
call:parse_file_new "batch\config\config" cnfg n
set "sf=%cnfg[1]%"
cd batch\\scripts\\
call get_config version
cd ..\\..\\
%ZU-app% a "%title%-%sf%.zip" .\batch\*
:: ================= FUNCTIONS =========================
:parse_file
set "file=%~1"
for /F "usebackq delims=" %%a in ("%file%") do (
set /A %~3+=1
call set %~2[%%%~3%%]=%%a
)
goto:eof
:parse_file_new
set /A %~3=0
call:parse_file %~1 %~2 %~3
goto:eof
%ZU-app% a "%title%-%version%.zip" .\batch\*
:: =================== EOF =============================