X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=make-files;h=ca1ac094b48f83a66dd7b1cdac9e7600370f0a41;hb=8305d2cfa799ab2362fa5d8d75487db038ea6ce8;hp=e5aa6d5d123e5ffbe3ec4860484ff86c8e771bcc;hpb=331965859222bca39a7fc251cdc93830620c8a4a;p=phdru.name%2Fphdru.name.git diff --git a/make-files b/make-files index e5aa6d5..ca1ac09 100755 --- a/make-files +++ b/make-files @@ -5,7 +5,7 @@ PYTHONPATH=. PYTHONIOENCODING=koi8-r:replace export PYTHONPATH PYTHONIOENCODING -if [ phd_site.tmpl -nt phd_site.py ]; then +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 && compyle phd_site.py fi && @@ -15,6 +15,7 @@ for tmpl in "$@"; do 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 + --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