]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - make-files
Do not regenerate zope sitemap
[phdru.name/phdru.name.git] / make-files
index 43b9c010a906db3b865585030a28d7c519214ee8..ec02398709c5d36f2b2396aa53ccd5ea81745324 100755 (executable)
@@ -4,8 +4,13 @@ umask 022
 PYTHONPATH=.
 export PYTHONPATH
 
-if [ phd_pp_ru.tmpl -nt phd_pp_ru.py ]; then
-   cheetah compile --nobackup phd_pp_ru.tmpl
-fi
+if [ phd_site.tmpl -nt phd_site.py ]; then
+   cheetah compile --nobackup phd_site.tmpl && compyle phd_site.py
+fi &&
 
-exec cheetah fill --nobackup "$@"
+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
+done