X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=update-all;h=e55aa84ccf3e958491e0fd1694b6336b5aa4c246;hb=refs%2Fheads%2Fmaster;hp=ed64a5ffc561ad31734c33cf70f7148d2deef65c;hpb=46df294ccb1fbc72710ad58e2a4c4b3d185fa71a;p=phdru.name%2Fphdru.name.git diff --git a/update-all b/update-all index ed64a5f..e55aa84 100755 --- a/update-all +++ b/update-all @@ -1,11 +1,10 @@ #! /bin/sh -cd ../htdocs/phdru.name && +git diff --quiet web/master master || +git push web master || exit 1 -ssh -4 phdppru@phdru.name ' - cd public_html && exec mv .htaccess awstats cgi-bin "$HOME"/tmp' && +cd "`dirname \"$0\"`"/.. && +distribute -aD phdru.name && -distribute -d public_html && - -exec ssh -4 phdppru@phdru.name ' - cd tmp && exec mv .htaccess awstats cgi-bin ../public_html' +cd htdocs && +exec distribute -aD git.phdru.name phdru.name