X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=update;h=9bf0ec93ee6699c3c542e0d12042517328918a3d;hb=64469abf1cd80bf1dcd4fe8ab2bfe6205193deea;hp=e1b9b1b9749a37dd7168c6127c72f05c17c69996;hpb=02a65d64e190bc5480cc4ccce4cc4e16db1ba66e;p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git diff --git a/update b/update index e1b9b1b..9bf0ec9 100755 --- 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 +fi && + +cd "$current" && exec git pull origin