view weave.sh @ 24:7b34b718503e tip

makefile, and updated this stuff to work with the newest emacs!
author Robert McIntyre <rlm@mit.edu>
date Mon, 02 Mar 2015 12:30:24 -0800
parents 993b8d7d9bec
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'