annotate weave.sh @ 2:a838c4a7fb70

changed the semantics of tangle to match weave
author Robert McIntyre <rlm@mit.edu>
date Sat, 15 Oct 2011 09:23:57 -0700
parents fd36f08d32c5
children dc2ae5732141
rev   line source
rlm@1 1 #!/bin/sh
rlm@1 2
rlm@1 3 # assumes ./org directory with org files to publish to
rlm@1 4 # ./html
rlm@1 5
rlm@1 6 #target=$(readlink -f $1)
rlm@1 7
rlm@1 8 dir=`pwd`
rlm@1 9
rlm@1 10 echo $dir
rlm@1 11 emacs \
rlm@1 12 -l /home/r/config/emacs/clojure-init.el \
rlm@1 13 -l /home/r/config/emacs/org-init.el \
rlm@1 14 -l /home/r/config/emacs/web-color.el \
rlm@1 15 --batch \
rlm@1 16 --eval "
rlm@1 17 (progn
rlm@1 18 (setq org-publish-project-alist
rlm@1 19 '(
rlm@1 20 (\"project\"
rlm@1 21 :base-directory \"$dir/org\"
rlm@1 22 :base-extension \"org\"
rlm@1 23 :publishing-directory \"$dir/html\"
rlm@1 24 :recursive t
rlm@1 25 :publishing-function org-publish-org-to-html
rlm@1 26 :auto-preamble t)
rlm@1 27 ))
rlm@1 28
rlm@1 29 (org-publish-project \"project\"))" \
rlm@1 30 \
rlm@1 31 2>&1 | pcregrep 'Wrote'
rlm@1 32
rlm@1 33
rlm@1 34