]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - make-files
Feat(reindex_blog.py): Расширить описание
[phdru.name/phdru.name.git] / make-files
index 5c736eaab2ee41b82d45b6d96c48727b2ebf3857..fce39a786fb1cbf4f77872733a7778185781eb01 100755 (executable)
@@ -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 &&
+   python3 -m Cheetah.CheetahWrapper compile --encoding=koi8-r --settings='encoding="koi8-r"' --nobackup phd_site.tmpl &&
    compyle phd_site.py
 fi &&
 
@@ -14,8 +14,8 @@ 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"' \
-      --nobackup --stdout "$tmpl" | iconv -f utf-8 -t koi8-r >"$dir/$outfile" || exit 1
+   python3 -m Cheetah.CheetahWrapper 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