-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend indent script to fix changelog entries #6153
Conversation
contrib/utilities/indent
Outdated
@@ -140,8 +140,10 @@ find tests include source benchmarks cookbooks unit_tests \ | |||
| xargs -P 10 -I {} bash -c "indent_file {}" | |||
|
|||
|
|||
SOURCE_FILES=`find include source unit_tests cookbooks benchmarks doc \( -name '*.cc' -o -name '*.h' -o -name '*.prm' -o -name '*.h.in' -o -name 'CMakeLists.txt' -o -name '*.cmake' -o -name '*.md' -o -wholename '*modules/changes/*' \) -print` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly, this doesn't work with -print0
in bash, which would be cleaner and safer (special characters in filenames).
7d52209
to
d90acb0
Compare
What about putting it into a function like this version? That seems to work for me. |
d90acb0
to
82ffad0
Compare
@tjhei I think this is ready for another look. The script even found something in the last remaining changelog entry ;-). |
/rebuild |
86f530b
to
f2be02c
Compare
@tjhei: I think this is ready, can you take a look? |
This needs to be rebased and merged after #6152 has been merged. During that other PR I noticed that our changelog entries are not checked and fixed by the indent script. This PR changes the script to include more files when checking for:
I also included the changes this PR would make to the changelog entries (but they will be changed by #6152 anyway).