Mercurial > org-tools
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/sh3 # assumes ./org directory with org files to publish to4 # ./html6 #target=$(readlink -f $1)8 if [ ! -d "./org" ]; then9 echo "no org directory"10 exit11 fi14 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 (progn23 (setq org-publish-project-alist24 '(25 (\"project\"26 :base-directory \"$dir/org\"27 :base-extension \"org\"28 :publishing-directory \"$dir/html\"29 :recursive t30 :publishing-function org-publish-org-to-html31 :auto-preamble t)32 ))34 (org-publish-project \"project\"))" \35 \36 2>&1 #| pcregrep 'Wrote'