X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=make-files;h=31a7b651335913ead0cbe26beb78172e514de7fd;hb=af2e193af1a1a95983839beb0fad3d76ab96e4c6;hp=ec02398709c5d36f2b2396aa53ccd5ea81745324;hpb=43570f95e14bda6528e2b1539458ddb76526b3f4;p=phdru.name%2Fphdru.name.git diff --git a/make-files b/make-files index ec02398..31a7b65 100755 --- a/make-files +++ b/make-files @@ -2,15 +2,20 @@ umask 022 PYTHONPATH=. -export PYTHONPATH +PYTHONIOENCODING=koi8-r:replace +export PYTHONPATH PYTHONIOENCODING if [ phd_site.tmpl -nt phd_site.py ]; then - cheetah compile --nobackup phd_site.tmpl && compyle phd_site.py + cheetah compile --encoding=koi8-r --settings='encoding="koi8-r"' --nobackup phd_site.tmpl && + compyle phd_site.py fi && 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 + cheetah fill --encoding=koi8-r --settings='encoding="koi8-r"' \ + --nobackup --stdout "$tmpl" | iconv -f utf-8 -t koi8-r >"$dir/$outfile" || exit 1 done + +exec sitemap_gen.py --config=sitemaps/phdru.name-config.xml