Mercurial > org-tools
view weave.sh @ 16:f433fae15c50
made auto-weave work on all projects
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 02 Nov 2011 05:01:57 -0700 |
parents | 73beed20f7de |
children | 993b8d7d9bec |
line wrap: on
line source
1 #!/bin/sh3 # assumes ./org directory with org files to publish to4 # ./html6 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 (progn19 (setq org-publish-project-alist20 '(21 (\"project\"22 :base-directory \"$dir/org\"23 :base-extension \"org\"24 :publishing-directory \"$dir/html\"25 :recursive t26 :publishing-function org-publish-org-to-html27 :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 t35 :publishing-function org-publish-org-to-html36 :auto-preamble t)37 ))" \38 \39 2>&1 #| pcregrep 'Wrote'