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 &&
dir="`dirname \"$tmpl\"`"
outfile="`basename \"$tmpl\" .tmpl`.html"
echo "$tmpl => $dir/$outfile"
- cheetah fill --encoding=koi8-r --settings='encoding="koi8-r"' \
- --nobackup --stdout "$tmpl" | iconv -f utf-8 -t koi8-r >"$dir/$outfile" || exit 1
+ 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
exec sitemap_gen.py --config=sitemaps/phdru.name-config.xml