manymanymany-varia-websites/publish
2020-03-11 17:47:05 +01:00

11 lines
246 B
Python
Executable File

#!/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:
subprocess.run("cd {} && make publish".format(path), shell=True)