Author Topic: How To: Use sed to create custom cbp files under windows  (Read 7201 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
How To: Use sed to create custom cbp files under windows
« on: February 15, 2007, 01:36:25 pm »
FYI:

I have started using sed scripts to create modified Code::Blocks project files for building custom C::B setups.

I am using sed command for windows downloaded from http://sourceforge.net/projects/gnuwin32

I suggest using sed-4.1.4.exe from http://sourceforge.net/project/showfiles.php?group_id=23617&package_id=16429

NOTES: These customized Code::Blocks project files are NOT supported by the Code::Blocks Team.

WARNINGS: The batch file when re-ran will over-write the Code::Blocks project files so you will lose your modifications if you did any.

Tim S

« Last Edit: February 15, 2007, 02:04:41 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: How To: Use sed to create custom cbp files under windows
« Reply #1 on: February 15, 2007, 01:38:19 pm »
Index Placeholder
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: How To: Use sed to create custom cbp files under windows
« Reply #2 on: February 15, 2007, 01:46:44 pm »
How to create an ANSI Code::Blocks build project files.
 
Since sed use the forward slash as a delimiter, every forward slash not used as a delimiter must be escaped by an backslash (\).

sed commands that are being used in the batch file written like normal sed commands, note I found out that two sed command with option "g" do not do what I thought they did. So, I re-wrote the bat to run each search and replace one at a time.

# Change Variable WX_SUFFIX to empty string
s/<Variable name="WX_SUFFIX" value="u" \/>/<Variable name="WX_SUFFIX" value="" \/>/g
# Remove option -DwxUSE_UNICODE
s/<Add option="-DwxUSE_UNICODE" \/>$//g

In order to use sed commands on the command line they must be quoted.
In Windows, double quotes are used.
In Linux, I think single quotes are used.

Since, under windows double quotes are used, every double quote in the sed command must be escaped by an backslash (\).

sed-ANSI.bat
Code
SET PATH=C:\Program Files\GnuWin32\bin

sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\CodeBlocks.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\CodeBlocks-ansi.cbp

sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\byogames\byogames.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\byogames\byogames-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\cb_koders\cb_koders.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\cb_koders\cb_koders-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\codesnippets\codesnippets.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\codesnippets\codesnippets-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\codestat\codestat.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\codestat\codestat-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\copystrings\copystrings.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\copystrings\copystrings-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\devpak_plugin\DevPakPlugin.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\devpak_plugin\DevPakPlugin-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\dragscroll\dragscroll.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\dragscroll\dragscroll-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\envvars\envvars.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\envvars\envvars-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\help_plugin\help-plugin.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\help_plugin\help-plugin-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\keybinder\keybinder.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\keybinder\keybinder-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\lib_finder\lib_finder.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\lib_finder\lib_finder-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\profiler\cbprofiler.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\profiler\cbprofiler-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\source_exporter\Exporter.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\source_exporter\Exporter-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\symtab\symtab.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\symtab\symtab-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\regex_testbed\RegExTestbed.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\regex_testbed\RegExTestbed-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\plugins\contrib\wxSmith\wxSmith.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\plugins\contrib\wxSmith\wxSmith-ansi.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"\" \/>/g" src\tools\cb_share_config\cb_share_config.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$//g" > src\tools\cb_share_config\cb_share_config-ansi.cbp

PAUSE

ContribPlugins-ansi.workspace
Code
<CodeBlocks_workspace_file>
<Workspace title="All contrib plugins">
<Project filename="plugins\contrib\byogames\byogames-ansi.cbp" active="1" />
<Project filename="plugins\contrib\cb_koders\cb_koders-ansi.cbp" />
<Project filename="plugins\contrib\codesnippets\codesnippets-ansi.cbp" />
<Project filename="plugins\contrib\codestat\codestat-ansi.cbp" />
<Project filename="plugins\contrib\copystrings\copystrings-ansi.cbp" />
<Project filename="plugins\contrib\devpak_plugin\DevPakPlugin-ansi.cbp" />
<Project filename="plugins\contrib\dragscroll\dragscroll-ansi.cbp" />
<Project filename="plugins\contrib\envvars\envvars-ansi.cbp" />
<Project filename="plugins\contrib\help_plugin\help-plugin-ansi.cbp" />
<Project filename="plugins\contrib\keybinder\keybinder-ansi.cbp" />
<Project filename="plugins\contrib\lib_finder\lib_finder-ansi.cbp" />
<Project filename="plugins\contrib\profiler\cbprofiler-ansi.cbp" />
<Project filename="plugins\contrib\source_exporter\Exporter-ansi.cbp" />
<Project filename="plugins\contrib\symtab\symtab-ansi.cbp" />
<Project filename="plugins\contrib\regex_testbed\RegExTestbed-ansi.cbp" />
<Project filename="plugins\contrib\wxSmith\wxSmith-ansi.cbp" />
<Project filename="tools\cb_share_config\cb_share_config-ansi.cbp" />
</Workspace>
</CodeBlocks_workspace_file>

Tim S
« Last Edit: February 15, 2007, 05:21:06 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: How To: Use sed to create custom cbp files under windows
« Reply #3 on: February 16, 2007, 03:26:19 am »
How to create an Unicode Debug Code::Blocks build project files.

Assumption made include the adding the define __WXDEBUG__ only after the define of wxUSE_UNICODE this is most likely not every place that is needed, but it the best I can do for now.

# Change Variable WX_SUFFIX to ud
s/<Variable name="WX_SUFFIX" value="u" \/>/<Variable name="WX_SUFFIX" value="ud" \/>/g
# Add option -D__WXDEBUG__ after every -DwxUSE_UNICODE
# \t = tab; \n = newline
s/<Add option="-DwxUSE_UNICODE" \/>$/<Add option="-DwxUSE_UNICODE" \/>\n\t\t\t<Add option="-D__WXDEBUG__" \/>/g

sed-Debug.bat
Code
SET PATH=C:\Program Files\GnuWin32\bin

sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\CodeBlocks.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\CodeBlocks-debug.cbp

sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\byogames\byogames.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\byogames\byogames-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\cb_koders\cb_koders.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\cb_koders\cb_koders-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\codesnippets\codesnippets.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\codesnippets\codesnippets-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\codestat\codestat.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\codestat\codestat-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\copystrings\copystrings.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\copystrings\copystrings-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\devpak_plugin\DevPakPlugin.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\devpak_plugin\DevPakPlugin-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\dragscroll\dragscroll.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\dragscroll\dragscroll-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\envvars\envvars.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\envvars\envvars-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\help_plugin\help-plugin.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\help_plugin\help-plugin-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\keybinder\keybinder.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\keybinder\keybinder-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\lib_finder\lib_finder.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\lib_finder\lib_finder-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\profiler\cbprofiler.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\profiler\cbprofiler-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\source_exporter\Exporter.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\source_exporter\Exporter-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\symtab\symtab.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\symtab\symtab-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\regex_testbed\RegExTestbed.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\regex_testbed\RegExTestbed-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\plugins\contrib\wxSmith\wxSmith.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\plugins\contrib\wxSmith\wxSmith-debug.cbp
sed "s/<Variable name=\"WX_SUFFIX\" value=\"u\" \/>/<Variable name=\"WX_SUFFIX\" value=\"ud\" \/>/g" src\tools\cb_share_config\cb_share_config.cbp | sed "s/<Add option=\"-DwxUSE_UNICODE\" \/>$/<Add option=\"-DwxUSE_UNICODE\" \/>\n\t\t\t<Add option=\"-D__WXDEBUG__\" \/>/g" > src\tools\cb_share_config\cb_share_config-debug.cbp

PAUSE

ContribPlugins-debug.workspace
Code
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_workspace_file>
<Workspace title="All contrib plugins Debug">
<Project filename="plugins\contrib\byogames\byogames-debug.cbp" active="1" />
<Project filename="plugins\contrib\cb_koders\cb_koders-debug.cbp" />
<Project filename="plugins\contrib\codesnippets\codesnippets-debug.cbp" />
<Project filename="plugins\contrib\codestat\codestat-debug.cbp" />
<Project filename="plugins\contrib\copystrings\copystrings-debug.cbp" />
<Project filename="plugins\contrib\devpak_plugin\DevPakPlugin-debug.cbp" />
<Project filename="plugins\contrib\dragscroll\dragscroll-debug.cbp" />
<Project filename="plugins\contrib\envvars\envvars-debug.cbp" />
<Project filename="plugins\contrib\help_plugin\help-plugin-debug.cbp" />
<Project filename="plugins\contrib\keybinder\keybinder-debug.cbp" />
<Project filename="plugins\contrib\lib_finder\lib_finder-debug.cbp" />
<Project filename="plugins\contrib\profiler\cbprofiler-debug.cbp" />
<Project filename="plugins\contrib\source_exporter\Exporter-debug.cbp" />
<Project filename="plugins\contrib\symtab\symtab-debug.cbp" />
<Project filename="plugins\contrib\regex_testbed\RegExTestbed-debug.cbp" />
<Project filename="plugins\contrib\wxSmith\wxSmith-debug.cbp" />
<Project filename="tools\cb_share_config\cb_share_config-debug.cbp" />
</Workspace>
</CodeBlocks_workspace_file>
« Last Edit: February 16, 2007, 03:30:30 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: How To: Use sed to create custom cbp files under windows
« Reply #4 on: February 16, 2007, 01:19:52 pm »
How to create an Unicode Code::Blocks build project files that link against wxWidgets 2.8.

sed-wxW28.bat
Code
SET PATH=C:\Program Files\GnuWin32\bin

sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\CodeBlocks.cbp > src\CodeBlocks-wx28.cbp

sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\byogames\byogames.cbp > src\plugins\contrib\byogames\byogames-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\cb_koders\cb_koders.cbp > src\plugins\contrib\cb_koders\cb_koders-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\codesnippets\codesnippets.cbp > src\plugins\contrib\codesnippets\codesnippets-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\codestat\codestat.cbp > src\plugins\contrib\codestat\codestat-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\copystrings\copystrings.cbp > src\plugins\contrib\copystrings\copystrings-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\devpak_plugin\DevPakPlugin.cbp > src\plugins\contrib\devpak_plugin\DevPakPlugin-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\dragscroll\dragscroll.cbp > src\plugins\contrib\dragscroll\dragscroll-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\envvars\envvars.cbp > src\plugins\contrib\envvars\envvars-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\help_plugin\help-plugin.cbp > src\plugins\contrib\help_plugin\help-plugin-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\keybinder\keybinder.cbp > src\plugins\contrib\keybinder\keybinder-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\lib_finder\lib_finder.cbp > src\plugins\contrib\lib_finder\lib_finder-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\profiler\cbprofiler.cbp > src\plugins\contrib\profiler\cbprofiler-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\source_exporter\Exporter.cbp > src\plugins\contrib\source_exporter\Exporter-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\symtab\symtab.cbp > src\plugins\contrib\symtab\symtab-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\regex_testbed\RegExTestbed.cbp > src\plugins\contrib\regex_testbed\RegExTestbed-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\plugins\contrib\wxSmith\wxSmith.cbp > src\plugins\contrib\wxSmith\wxSmith-wx28.cbp
sed "s/wxmsw26\$(WX_SUFFIX)/wxmsw28\$(WX_SUFFIX)/g" src\tools\cb_share_config\cb_share_config.cbp > src\tools\cb_share_config\cb_share_config-wx28.cbp

REM ContribPlugins.workspace

PAUSE

ContribPlugins-wx28.workspace
Code
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_workspace_file>
<Workspace title="All contrib plugins wxWidgets28">
<Project filename="plugins\contrib\byogames\byogames-wx28.cbp" active="1" />
<Project filename="plugins\contrib\cb_koders\cb_koders-wx28.cbp" />
<Project filename="plugins\contrib\codesnippets\codesnippets-wx28.cbp" />
<Project filename="plugins\contrib\codestat\codestat-wx28.cbp" />
<Project filename="plugins\contrib\copystrings\copystrings-wx28.cbp" />
<Project filename="plugins\contrib\devpak_plugin\DevPakPlugin-wx28.cbp" />
<Project filename="plugins\contrib\dragscroll\dragscroll-wx28.cbp" />
<Project filename="plugins\contrib\envvars\envvars-wx28.cbp" />
<Project filename="plugins\contrib\help_plugin\help-plugin-wx28.cbp" />
<Project filename="plugins\contrib\keybinder\keybinder-wx28.cbp" />
<Project filename="plugins\contrib\lib_finder\lib_finder-wx28.cbp" />
<Project filename="plugins\contrib\profiler\cbprofiler-wx28.cbp" />
<Project filename="plugins\contrib\source_exporter\Exporter-wx28.cbp" />
<Project filename="plugins\contrib\symtab\symtab-wx28.cbp" />
<Project filename="plugins\contrib\regex_testbed\RegExTestbed-wx28.cbp" />
<Project filename="plugins\contrib\wxSmith\wxSmith-wx28.cbp" />
<Project filename="tools\cb_share_config\cb_share_config-wx28.cbp" />
</Workspace>
</CodeBlocks_workspace_file>
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org