annotate weave-all.sh @ 20:5423d5aaa56a

added sample makefile from Eric Schulte that may one day replace these scripts
author Robert McIntyre <rlm@mit.edu>
date Fri, 02 Mar 2012 15:34:41 -0600
parents c14f3a4af7fd
children 7b34b718503e
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@19 8 if [ ! -d "./org" ]; then
rlm@19 9 echo "no org directory"
rlm@19 10 exit
rlm@19 11 fi
rlm@19 12
rlm@19 13
rlm@6 14 dir=`pwd`
rlm@6 15
rlm@6 16 emacs \
rlm@6 17 -l /home/r/config/emacs/clojure-init.el \
rlm@6 18 -l /home/r/config/emacs/org-init.el \
rlm@6 19 -l /home/r/config/emacs/web-color.el \
rlm@6 20 --batch \
rlm@6 21 --eval "
rlm@6 22 (progn
rlm@6 23 (setq org-publish-project-alist
rlm@6 24 '(
rlm@6 25 (\"project\"
rlm@6 26 :base-directory \"$dir/org\"
rlm@6 27 :base-extension \"org\"
rlm@6 28 :publishing-directory \"$dir/html\"
rlm@6 29 :recursive t
rlm@6 30 :publishing-function org-publish-org-to-html
rlm@6 31 :auto-preamble t)
rlm@6 32 ))
rlm@6 33
rlm@6 34 (org-publish-project \"project\"))" \
rlm@6 35 \
rlm@6 36 2>&1 #| pcregrep 'Wrote'
rlm@6 37
rlm@6 38
rlm@6 39
rlm@6 40