Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Miguel Gimenez on April 30, 2019, 11:10:04 pm

Title: update.bat fails after revision 11659
Post by: Miguel Gimenez on April 30, 2019, 11:10:04 pm
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)

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

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.
Title: Re: update.bat fails after revision 11659
Post by: oBFusCATed on April 30, 2019, 11:54:25 pm
@Morten: Can you fix this?