Added python script to automatically propagate the MOLE software license in root directory to all MATLAB/Octave scripts and C++ files#342
Open
deepanshu-zade wants to merge 3 commits intomainfrom
Conversation
Collaborator
Tony-Drummond
left a comment
There was a problem hiding this comment.
I review these changes with @deepanshu-zade and verified that it is working properly. This was a good suggestion by @pritkc and the implementation changes MATLAB/Octave script and C++ files.
We would like to first merge the branch PR #341 to main, and then this branch.
Collaborator
|
Thank you @deepanshu-zade for the feature. I exercised doc/utils/common/update_license.py locally: py_compile; correct insert/update/skip behavior for .m, .cpp, .h, and .hpp; recursive discovery; idempotent second pass; empty tree message; invalid CLI args; missing license path and missing target directory. All of that behaved as intended. Approving based on these checks. |
pritkc
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this? (check all applicable)
Description
Related Issues & Documents
QA Instructions, Screenshots, Recordings
Please replace this line with instructions on how to test your changes, a note
on the devices and browsers this has been tested on, as well as any relevant
images for UI changes.
Added/updated tests?
_We encourage you to test all code included with MOLE, including examples.
have not been included
Read Contributing Guide and Code of Conduct
[optional] Are there any post deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?