]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - update-all
Feat(blog): Encode tags
[phdru.name/phdru.name.git] / update-all
index ed64a5ffc561ad31734c33cf70f7148d2deef65c..e55aa84ccf3e958491e0fd1694b6336b5aa4c246 100755 (executable)
@@ -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