view weave-all.sh @ 19:c14f3a4af7fd

make weave-all check for existence of org directory
author Robert McIntyre <rlm@mit.edu>
date Thu, 01 Mar 2012 06:33:12 -0700
parents ce96610fe058
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'