update the update script to use git
[clinton/website/site-support.git] / update.sh
1 #!/bin/sh
2
3 (cd src/unknownlamer.org && git push)
4
5 (cd site/unknownlamer.org-repo && git pull)
6
7 (cd site-support && clisp -i ./books.lisp -x '(dump-muse-books-file)')
8
9 if [ "$1" = "--force" ]; then
10 emacsclient --eval '(muse-project-publish "unknownlamer.org-clean" t)'
11 else
12 emacsclient --eval '(muse-project-publish "unknownlamer.org-clean")'
13 fi
14
15 # something is broken in my muse setup but just work around it for now
16 rm -f site/unknownlamer.org/index.html
17 emacsclient --eval '(muse-project-publish "unknownlamer.org-clean")'
18
19 cd site/unknownlamer.org
20 git pull ../unknownlamer.org-repo --no-edit
21 find . -name \* -print0 | xargs -0 git add
22 git commit --all -m "html update"
23 git push /afs/hcoop.net/user/c/cl/clinton/.hcoop-git/website/site/unknownlamer.org.git
24
25
26 (cd /afs/hcoop.net/user/c/cl/clinton/public_html/unknownlamer.org/www/muse && git pull)