Mercurial > org-tools
view weave.sh @ 7:ce96610fe058
perl script is amazing
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 24 Oct 2011 09:41:38 -0700 |
parents | 5370428e673e |
children | 73beed20f7de |
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 emacsclient \13 --eval "14 (progn15 (setq org-publish-project-alist16 '(17 (\"project\"18 :base-directory \"$dir/org\"19 :base-extension \"org\"20 :publishing-directory \"$dir/html\"21 :recursive t22 :publishing-function org-publish-org-to-html23 :auto-preamble t)24 ))26 (org-publish-file \"$target\" '(\"project\"27 :base-directory \"$dir/org\"28 :base-extension \"org\"29 :publishing-directory \"$dir/html\"30 :recursive t31 :publishing-function org-publish-org-to-html32 :auto-preamble t)33 ))" \34 \35 2>&1 #| pcregrep 'Wrote'