X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=make-files;h=ec02398709c5d36f2b2396aa53ccd5ea81745324;hb=d25d749d6c737395c9076c2061c8088fedeb80bf;hp=49d5182896417286bf00c00eb5fbaa7aaa1c9370;hpb=42465be8abac2fdb32c939bc7e5ad0fbca5df2f8;p=phdru.name%2Fphdru.name.git diff --git a/make-files b/make-files index 49d5182..ec02398 100755 --- a/make-files +++ b/make-files @@ -5,7 +5,12 @@ PYTHONPATH=. export PYTHONPATH if [ phd_site.tmpl -nt phd_site.py ]; then - cheetah compile --nobackup phd_site.tmpl -fi + cheetah compile --nobackup phd_site.tmpl && compyle phd_site.py +fi && -exec cheetah fill --nobackup "$@" +for tmpl in "$@"; do + dir="`dirname \"$tmpl\"`" + outfile="`basename \"$tmpl\" .tmpl`.html" + echo "$tmpl => $dir/$outfile" + cheetah fill --nobackup --stdout "$tmpl" | iconv -f utf-8 >"$dir/$outfile" || exit 1 +done