Skip to content

Update script

David Vanderhaeghe edited this page Feb 5, 2021 · 4 revisions

PR 642 (WIP, script still update from first tests feedback)

To update from old radium version to post #642

update-642.sh

Run this script, it will edit files from the current directory, please remove any by product directory before (as build, bundle, install...)

To actually edit the file, change dododo=0 to dododo=1 in the script

You can also change the paths in every find commands ( form . to src for instance ).

Some manual tweaks are needed after for forward declaration.

You can also "source" the file (this will run the script and also define the function in current bash), or copy/paste the functions in bash, to manually update one namespace or include with

update_include_from_filenames src/Radium/Include/Path/Before/file.hpp src/Radium/Dir/After/
update_namespace My::NameSpace::Prefix::Before My::NameSpace::After::Replace::Prefix
Clone this wiki locally