]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - make-files
Fix(cheetah compile): chmod +x
[phdru.name/phdru.name.git] / make-files
index e5aa6d5d123e5ffbe3ec4860484ff86c8e771bcc..5c736eaab2ee41b82d45b6d96c48727b2ebf3857 100755 (executable)
@@ -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 &&
@@ -18,3 +18,4 @@ for tmpl in "$@"; do
       --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