view weave-all.sh @ 21:2665078cad13

get license.
author Robert McIntyre <rlm@mit.edu>
date Tue, 26 Feb 2013 16:39:24 +0000
parents c14f3a4af7fd
children 7b34b718503e
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 if [ ! -d "./org" ]; then
9 echo "no org directory"
10 exit
11 fi
14 dir=`pwd`
16 emacs \
17 -l /home/r/config/emacs/clojure-init.el \
18 -l /home/r/config/emacs/org-init.el \
19 -l /home/r/config/emacs/web-color.el \
20 --batch \
21 --eval "
22 (progn
23 (setq org-publish-project-alist
24 '(
25 (\"project\"
26 :base-directory \"$dir/org\"
27 :base-extension \"org\"
28 :publishing-directory \"$dir/html\"
29 :recursive t
30 :publishing-function org-publish-org-to-html
31 :auto-preamble t)
32 ))
34 (org-publish-project \"project\"))" \
35 \
36 2>&1 #| pcregrep 'Wrote'