X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fphdru.name.git;a=blobdiff_plain;f=make-files;h=a43d782cb4e162ced61786c4d8b33be2e9b3deb9;hp=ca1ac094b48f83a66dd7b1cdac9e7600370f0a41;hb=HEAD;hpb=8305d2cfa799ab2362fa5d8d75487db038ea6ce8 diff --git a/make-files b/make-files index ca1ac09..a43d782 100755 --- a/make-files +++ b/make-files @@ -6,7 +6,7 @@ PYTHONIOENCODING=koi8-r:replace export PYTHONPATH PYTHONIOENCODING if [ \! -e phd_site.py -o phd_site.tmpl -nt phd_site.py ]; then - cheetah compile --encoding=koi8-r --settings='encoding="koi8-r"' --nobackup phd_site.tmpl && + python2.7 `which cheetah` compile --encoding=koi8-r --settings='encoding="koi8-r"' --nobackup phd_site.tmpl && compyle phd_site.py fi && @@ -14,7 +14,7 @@ for tmpl in "$@"; do dir="`dirname \"$tmpl\"`" outfile="`basename \"$tmpl\" .tmpl`.html" echo "$tmpl => $dir/$outfile" - cheetah fill --encoding=koi8-r --settings='encoding="koi8-r"' \ + python2.7 `which cheetah` fill --encoding=koi8-r --settings='encoding="koi8-r"' \ --nobackup --stdout "$tmpl" | iconv -c -f utf-8 -t koi8-r >"$dir/$outfile" || exit 1 done