Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B

Patch for update.bat

(1/1)

gd_on:
Recent unix-like utilities in Msys2 no more support wilcards (see https://www.msys2.org/news/#2024-11-03-disabling-mingw-w64-wildcard-support-by-default)
So, when building C::B on my PC, strip operations within update.bat do not work as previously. Lines 241-243:

--- Code: ---strip "%CB_OUTPUT_DIR%\*.exe"
strip "%CB_OUTPUT_DIR%\*.dll"
strip "%CB_OUTPUT_RESDIR%\plugins\*.dll"

--- End code ---
do not work. There is a -w option in strip options, but apparently not done to force this wilcards usage.
A possible patch is to replace those lines by :

--- Code: ---for %%F in ("%CB_OUTPUT_DIR%\*.exe") do (strip "%%F")
for %%F in ("%CB_OUTPUT_DIR%\*.dll") do (strip "%%F")
for %%F in ("%CB_OUTPUT_RESDIR%\plugins\*.dll") do (strip "%%F")

--- End code ---
Note that, utilities within winlibs distribution (even 15.2 version), until now, continue to work as previously.

Navigation

[0] Message Index

Go to full version