manymanymany-varia-websites/publish

18 lines
771 B
Plaintext
Raw Normal View History

2020-03-11 17:21:40 +01:00
#!/usr/bin/env python3
import os
import os.path
import subprocess
paths = [p for p in os.listdir('.') if os.path.isdir(p) and 'Makefile' in os.listdir(p)]
for path in paths:
print("-------------------------------------------------------------------")
print("-------------------------------------------------------------------")
print("-------------------------------------------------------------------")
print("Building in {0}".format(path))
subprocess.run("cd {} && make html".format(path), shell=True)
print("-------------------------------------------------------------------")
print("-------------------------------------------------------------------")
print("-------------------------------------------------------------------")