Merge branch 'master' of ssh://vvvvvvaria.org:12345/varia/manymanymany-varia-websites

This commit is contained in:
manetta 2020-03-11 17:25:30 +01:00
commit 26c50d60b5
2 changed files with 10 additions and 7 deletions

View File

@ -1,7 +0,0 @@
SITES ?= $$(find . -maxdepth 2 -name "Makefile" -not -path "./Makefile" | xargs -I {} dirname {})
default: publish
.PHONY: publish
publish:
for path in $(SITES) ; do echo "Building in $(basename $$path)..." && cd $$path && make publish; done

10
publish Executable file
View File

@ -0,0 +1,10 @@
#!/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 html".format(path), shell=True)