comparison weave.sh @ 1:fd36f08d32c5

added weave, which exports files to html.
author Robert McIntyre <rlm@mit.edu>
date Sat, 15 Oct 2011 09:17:23 -0700
parents
children dc2ae5732141
comparison
equal deleted inserted replaced
0:341a5da5f196 1:fd36f08d32c5
1 #!/bin/sh
2
3 # assumes ./org directory with org files to publish to
4 # ./html
5
6 #target=$(readlink -f $1)
7
8 dir=`pwd`
9
10 echo $dir
11 emacs \
12 -l /home/r/config/emacs/clojure-init.el \
13 -l /home/r/config/emacs/org-init.el \
14 -l /home/r/config/emacs/web-color.el \
15 --batch \
16 --eval "
17 (progn
18 (setq org-publish-project-alist
19 '(
20 (\"project\"
21 :base-directory \"$dir/org\"
22 :base-extension \"org\"
23 :publishing-directory \"$dir/html\"
24 :recursive t
25 :publishing-function org-publish-org-to-html
26 :auto-preamble t)
27 ))
28
29 (org-publish-project \"project\"))" \
30 \
31 2>&1 | pcregrep 'Wrote'
32
33
34