Neels Hofmeyr | 693355e | 2018-06-11 17:14:31 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
2 | import os | ||||
3 | import os.path | ||||
4 | import sys | ||||
5 | import subprocess | ||||
6 | |||||
7 | base_dir = os.getcwd() | ||||
8 | |||||
9 | for p in list(os.listdir('.')): | ||||
10 | subdir = os.path.join(base_dir, p) | ||||
11 | if not os.path.isdir(os.path.join(subdir, '.git')): | ||||
12 | continue | ||||
13 | print("\n===== %s =====" % p) | ||||
14 | os.chdir(subdir) | ||||
15 | subprocess.call(sys.argv[1:]) |