Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
update.bat fails after revision 11659
(1/1)
Miguel Gimenez:
The change in update.bat made in revision 11659 breaks the "Packing core UI bitmaps" part
--- Code: ---Packing core UI bitmaps
zip I/O error: No such file or directory
zip error: Could not create output file (devel31/share/CodeBlocks/resources.zip)
zip I/O error: No such file or directory
zip error: Could not create output file (devel31/share/CodeBlocks/manager_resources.zip)
Packing plugins UI bitmaps
zip I/O error: No such file or directory
zip error: Could not create output file (devel31/share/CodeBlocks/compiler.zip)
--- End code ---
This is the relevant code, the problem is due to the removal of ..\..\
--- Code: ----%ZIPCMD% -0 -qu ..\..\%CB_DEVEL_RESDIR%\resources.zip images\*.png images\12x12\*.png images\16x16\*.png images\22x22\*.png images\32x32\*.png> nul
+"%ZIPCMD%" -0 -qu "%CB_DEVEL_RESDIR%\resources.zip" images\*.png images\12x12\*.png images\16x16\*.png images\22x22\*.png images\32x32\*.png > nul
cd ..\..\sdk\resources
-%ZIPCMD% -0 -qu ..\..\%CB_DEVEL_RESDIR%\manager_resources.zip images\*.png images\12x12\*.png images\16x16\*.png > nul
+"%ZIPCMD%" -0 -qu "%CB_DEVEL_RESDIR%\manager_resources.zip" images\*.png images\12x12\*.png images\16x16\*.png images\22x22\*.png images\32x32\*.png > nul
echo Packing plugins UI bitmaps
cd ..\..\plugins\compilergcc\resources
-%ZIPCMD% -0 -qu ..\..\..\%CB_DEVEL_RESDIR%\compiler.zip images\16x16\*.png images\22x22\*.png images\32x32\*.png > nul
+"%ZIPCMD%" -0 -qu "%CB_DEVEL_RESDIR%\compiler.zip" images\*.png images\16x16\*.png images\22x22\*.png images\32x32\*.png > nul
+cd ..\..\..\plugins\debuggergdb\resources
+"%ZIPCMD%" -0 -qu "%CB_DEVEL_RESDIR%\debugger.zip" images\*.png images\16x16\*.png images\22x22\*.png images\32x32\*.png > nul
--- End code ---
EDIT: attached is a quick and dirty patch that reverts this changes; probably a better solution is to remove all "cd" and ..\..
The debugger.zip part is commented because there is no images folder there so an error is signaled.
oBFusCATed:
@Morten: Can you fix this?
Navigation
[0] Message Index
Go to full version