view weave.sh @ 18:993b8d7d9bec

buggy garbage
author Robert McIntyre <rlm@mit.edu>
date Wed, 02 Nov 2011 09:24:54 -0700
parents 73beed20f7de
children
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
43 #| pcregrep 'Wrote'