News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

update.bat fails after revision 11659

Started by Miguel Gimenez, April 30, 2019, 11:10:04 PM

Previous topic - Next topic

Miguel Gimenez

The change in update.bat made in revision 11659 breaks  the "Packing core UI bitmaps" part


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 ..\..\

-%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.

oBFusCATed

#1
@Morten: Can you fix this?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]