annotate old-weave.sh @ 6:5370428e673e

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