Sometimes it is convenient to run an arbitrary command (e.g. 'git diff') on all subprojects. Add a 'meson subprojects foreach' command to take care of that. For this command the common argument 'subprojects' does not make sense, so only add '--sourcedir' and cover the case of a missing options.subprojects in run().pull/5176/head
parent
5905533fcd
commit
e680dbe065
3 changed files with 46 additions and 7 deletions
@ -0,0 +1,7 @@ |
||||
## Add new `meson subprojects foreach` command |
||||
|
||||
`meson subprojects` has learned a new `foreach` command which accepts a command |
||||
with arguments and executes it in each subproject directory. |
||||
|
||||
For example this can be useful to check the status of subprojects (e.g. with |
||||
`git status` or `git diff`) before performing other actions on them. |
Loading…
Reference in new issue