new Make target: show-deps

This commit is contained in:
Ștefan Talpalaru 2020-05-20 18:42:30 +02:00
parent 1c9feb0d66
commit 1c26934d98
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
2 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,12 @@ GNU Make, Bash and the usual POSIX utilities.
`make USE_SYSTEM_NIM=1 test`
## Make targets
### show-deps
Lists all Git submodule URLs, including nested ones.
## License
Licensed and distributed under either of

View File

@ -146,6 +146,12 @@ ctags:
--exclude=$(REPOS_DIR)/nim-bncurve/tests/tvectors.nim \
.
# list all Git submodule URLs, including the nested ones
show-deps:
{ git config --file .gitmodules --get-regexp url | cat ;\
git submodule foreach --quiet --recursive '[[ -f .gitmodules ]] && git config --file .gitmodules --get-regexp url | cat || true'; } \
| cut -d ' ' -f 2 | sort -u
############################
# Windows-specific section #
############################