certbot/tools/deps.sh

16 lines
297 B
Bash
Raw Permalink Normal View History

2015-09-01 15:57:41 -04:00
#!/bin/sh
#
# Find all Python imports.
#
2016-04-13 20:42:19 -04:00
# ./tools/deps.sh certbot
2015-10-31 07:48:33 -04:00
# ./tools/deps.sh acme
2016-04-13 20:42:19 -04:00
# ./tools/deps.sh certbot-apache
2015-09-01 15:57:41 -04:00
# ...
#
# Manually compare the output with deps in setup.py.
git grep -h -E '^(import|from.*import)' $1/ | \
awk '{print $2}' | \
grep -vE "^$1" | \
sort -u