]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/blobdiff - update
chmod -R a+rX cgi-bin
[phdru.name/cgi-bin/blog-ru/search-tags.git] / update
diff --git a/update b/update
index e1b9b1b9749a37dd7168c6127c72f05c17c69996..32dc34e46d8c5e418e7319e6522146a04fa9e269 100755 (executable)
--- a/update
+++ b/update
@@ -24,10 +24,16 @@ web="`git config --get --path remote.web.url`" &&
 rsync -ahP "$current"/html/html.py "$current"/html/html.tmpl \
            "$current"/html/redirect.py "$current"/html/redirect.tmpl html &&
 
-# Save files generated by yacc
+# Copy files generated by yacc
 rsync -ahP "$current"/parser.out "$current"/parsetab.py . &&
 
-cd "$current" && git pull origin &&
-
 cgi="`git config --get --path remote.cgi.url`" &&
-[ -n "$cgi" ] && cd "$cgi" && exec git pull origin
+if [ -n "$cgi" ]; then
+   umask 022 && cd "$cgi" && git pull origin &&
+   rsync -ahP "$current"/html/html.py "$current"/html/html.tmpl \
+              "$current"/html/redirect.py "$current"/html/redirect.tmpl html &&
+   rsync -ahP "$current"/parser.out "$current"/parsetab.py . &&
+   compyleall && chmod -R a+rX .
+fi &&
+
+cd "$current" && exec git pull origin