From 6d6c977c9a8406e87f5a78cca6033e94700a0f26 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 20 May 2014 10:45:41 +0400 Subject: [PATCH] Copy generated files and compile bytecode files in cgi --- update | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/update b/update index 1b9b518..4f62f64 100755 --- a/update +++ b/update @@ -28,6 +28,11 @@ rsync -ahP "$current"/html/html.py "$current"/html/html.tmpl \ rsync -ahP "$current"/parser.out "$current"/parsetab.py . && cgi="`git config --get --path remote.cgi.url`" && -[ -n "$cgi" ] && cd "$cgi" && 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 && + compyleall +fi && cd "$current" && exec git pull origin -- 2.39.2