update the update script to use git
[clinton/website/site-support.git] / update.sh
CommitLineData
429c8025 1#!/bin/sh
2
8e4503f3 3(cd src/unknownlamer.org && git push)
429c8025 4
8e4503f3 5(cd site/unknownlamer.org-repo && git pull)
429c8025 6
6c150d6a 7(cd site-support && clisp -i ./books.lisp -x '(dump-muse-books-file)')
429c8025 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
6c150d6a 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
429c8025 19cd site/unknownlamer.org
8e4503f3
CE
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)