BOUT-dev
BOUT-dev copied to clipboard
Add tool to move headers under `include/bout` and fix `#include`s
Replaces similar bash tool, but tries to preserve history by first moving headers into a single commit, then adding compatibility shim headers (that issue a #warning and #include the new location) in a second commit. Also when updating #includes, it prints a diff of the changes, to allow the user to review before applying (just in case something goes wrong!).
Should be essentially last PR into 5.0 to avoid massive conflicts.
To apply, run in two steps:
./bin/bout-v5-header-upgrader.py --files $(find . -type f -name "*.[hc]xx")to make sure all the#includes point to the new location./bin/bout-v5-header-upgrader.py --move-deprecated-headersto do the actual moving
The first command can then be used to fix user code and models. The second command should only need to be run once, ever.