Author Topic: Patch for update.bat  (Read 447 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 829
Patch for update.bat
« on: October 11, 2025, 04:30:24 pm »
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"
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")
Note that, utilities within winlibs distribution (even 15.2 version), until now, continue to work as previously.
Windows 11 64 bits (24H2), svn C::B (last version or almost!), wxWidgets 3.3.1, Msys2 Compilers 15.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).