update the update script to use git
[clinton/website/site-support.git] / update.sh
... / ...
CommitLineData
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
9if [ "$1" = "--force" ]; then
10 emacsclient --eval '(muse-project-publish "unknownlamer.org-clean" t)'
11else
12 emacsclient --eval '(muse-project-publish "unknownlamer.org-clean")'
13fi
14
15# something is broken in my muse setup but just work around it for now
16rm -f site/unknownlamer.org/index.html
17emacsclient --eval '(muse-project-publish "unknownlamer.org-clean")'
18
19cd site/unknownlamer.org
20git pull ../unknownlamer.org-repo --no-edit
21find . -name \* -print0 | xargs -0 git add
22git commit --all -m "html update"
23git 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)