annotate weave.sh @ 5:4824087ce1f2

transitioning to emacsclient because it's faster
author Robert McIntyre <rlm@mit.edu>
date Mon, 24 Oct 2011 08:31:37 -0700
parents dc2ae5732141
children 5370428e673e
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@5 10 # emacs \
rlm@5 11 # -l /home/r/config/emacs/clojure-init.el \
rlm@5 12 # -l /home/r/config/emacs/org-init.el \
rlm@5 13 # -l /home/r/config/emacs/web-color.el \
rlm@5 14 # --batch \
rlm@5 15 # --eval "
rlm@5 16 # (progn
rlm@5 17 # (setq org-publish-project-alist
rlm@5 18 # '(
rlm@5 19 # (\"project\"
rlm@5 20 # :base-directory \"$dir/org\"
rlm@5 21 # :base-extension \"org\"
rlm@5 22 # :publishing-directory \"$dir/html\"
rlm@5 23 # :recursive t
rlm@5 24 # :publishing-function org-publish-org-to-html
rlm@5 25 # :auto-preamble t)
rlm@5 26 # ))
rlm@5 27
rlm@5 28 # (org-publish-project \"project\"))" \
rlm@5 29 # \
rlm@5 30 # 2>&1 #| pcregrep 'Wrote'
rlm@5 31
rlm@5 32
rlm@5 33 emacsclient \
rlm@1 34 --eval "
rlm@1 35 (progn
rlm@1 36 (setq org-publish-project-alist
rlm@1 37 '(
rlm@1 38 (\"project\"
rlm@1 39 :base-directory \"$dir/org\"
rlm@1 40 :base-extension \"org\"
rlm@1 41 :publishing-directory \"$dir/html\"
rlm@1 42 :recursive t
rlm@1 43 :publishing-function org-publish-org-to-html
rlm@1 44 :auto-preamble t)
rlm@1 45 ))
rlm@1 46
rlm@1 47 (org-publish-project \"project\"))" \
rlm@1 48
rlm@1 49
rlm@1 50
rlm@5 51