From: Oleg Broytman Date: Tue, 20 May 2014 06:45:41 +0000 (+0400) Subject: Copy generated files and compile bytecode files in cgi X-Git-Tag: v0.1~5 X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git;a=commitdiff_plain;h=6d6c977c9a8406e87f5a78cca6033e94700a0f26 Copy generated files and compile bytecode files in cgi --- 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