view weave.sh @ 8:73beed20f7de

going to move refreshing the page to auto-weave
author Robert McIntyre <rlm@mit.edu>
date Tue, 25 Oct 2011 01:08:31 -0700
parents ce96610fe058
children 993b8d7d9bec
line wrap: on
line source
1 #!/bin/sh
3 # assumes ./org directory with org files to publish to
4 # ./html
6 target=$(readlink -f $1)
8 org=`dirname $target`
10 dir=`dirname $org`
12 emacs \
13 -l /home/r/config/emacs/clojure-init.el \
14 -l /home/r/config/emacs/org-init.el \
15 -l /home/r/config/emacs/web-color.el \
16 --batch \
17 --eval "
18 (progn
19 (setq org-publish-project-alist
20 '(
21 (\"project\"
22 :base-directory \"$dir/org\"
23 :base-extension \"org\"
24 :publishing-directory \"$dir/html\"
25 :recursive t
26 :publishing-function org-publish-org-to-html
27 :auto-preamble t)
28 ))
30 (org-publish-file \"$target\" '(\"project\"
31 :base-directory \"$dir/org\"
32 :base-extension \"org\"
33 :publishing-directory \"$dir/html\"
34 :recursive t
35 :publishing-function org-publish-org-to-html
36 :auto-preamble t)
37 ))" \
38 \
39 2>&1 #| pcregrep 'Wrote'