annotate weave-all.sh @ 24:7b34b718503e tip

makefile, and updated this stuff to work with the newest emacs!
author Robert McIntyre <rlm@mit.edu>
date Mon, 02 Mar 2015 12:30:24 -0800
parents c14f3a4af7fd
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@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@24 16 # emacs \
rlm@24 17 # -l /home/r/config/emacs/clojure-init.el \
rlm@24 18 # -l /home/r/config/emacs/org-init.el \
rlm@24 19 # -l /home/r/config/emacs/web-color.el \
rlm@24 20 # --batch \
rlm@24 21 # --eval "
rlm@24 22 # (progn
rlm@24 23 # (setq org-publish-project-alist
rlm@24 24 # '(
rlm@24 25 # (\"project\"
rlm@24 26 # :base-directory \"$dir/org\"
rlm@24 27 # :base-extension \"org\"
rlm@24 28 # :publishing-directory \"$dir/html\"
rlm@24 29 # :recursive t
rlm@24 30 # :publishing-function org-publish-org-to-html
rlm@24 31 # :auto-preamble t)
rlm@24 32 # ))
rlm@24 33
rlm@24 34 # (org-publish-project \"project\"))" \
rlm@24 35 # \
rlm@24 36 # 2>&1 #| pcregrep 'Wrote'
rlm@24 37
rlm@6 38 emacs \
rlm@24 39 -l /home/r/.emacs \
rlm@6 40 --batch \
rlm@6 41 --eval "
rlm@6 42 (progn
rlm@6 43 (setq org-publish-project-alist
rlm@6 44 '(
rlm@6 45 (\"project\"
rlm@6 46 :base-directory \"$dir/org\"
rlm@6 47 :base-extension \"org\"
rlm@6 48 :publishing-directory \"$dir/html\"
rlm@6 49 :recursive t
rlm@24 50 :publishing-function org-html-publish-to-html
rlm@6 51 :auto-preamble t)
rlm@6 52 ))
rlm@6 53
rlm@6 54 (org-publish-project \"project\"))" \
rlm@6 55 \
rlm@6 56 2>&1 #| pcregrep 'Wrote'
rlm@6 57
rlm@6 58
rlm@6 59
rlm@6 60