From e680dbe0658851bc73d8e664909df9619365e714 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 29 Mar 2019 18:23:13 +0100 Subject: Add 'meson subprojects foreach' command 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(). --- docs/markdown/snippets/subproject-foreach.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/markdown/snippets/subproject-foreach.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/subproject-foreach.md b/docs/markdown/snippets/subproject-foreach.md new file mode 100644 index 0000000..3a8ffc4 --- /dev/null +++ b/docs/markdown/snippets/subproject-foreach.md @@ -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. -- cgit v1.1