]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - update-all
Feat(blog): Encode tags
[phdru.name/phdru.name.git] / update-all
index 614d1a48fffd7481dc04c37bb100d69bf7c5f4f5..e55aa84ccf3e958491e0fd1694b6336b5aa4c246 100755 (executable)
@@ -1,6 +1,10 @@
 #! /bin/sh
 
-cd ../htdocs && \
-ssh phdppru@phd.pp.ru "cd public_html && exec mv .htaccess awstats cgi-bin ../tmp" && \
-distribute -r public_html/ -d phd.pp.ru/ && \
-exec ssh phdppru@phd.pp.ru "cd tmp && exec mv .htaccess awstats cgi-bin ../public_html"
+git diff --quiet web/master master ||
+git push web master || exit 1
+
+cd "`dirname \"$0\"`"/.. &&
+distribute -aD phdru.name &&
+
+cd htdocs &&
+exec distribute -aD git.phdru.name phdru.name