view 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
line wrap: on
line source
1 #!/bin/sh
3 # assumes ./org directory with org files to publish to
4 # ./html
6 #target=$(readlink -f $1)
8 if [ ! -d "./org" ]; then
9 echo "no org directory"
10 exit
11 fi
14 dir=`pwd`
16 # emacs \
17 # -l /home/r/config/emacs/clojure-init.el \
18 # -l /home/r/config/emacs/org-init.el \
19 # -l /home/r/config/emacs/web-color.el \
20 # --batch \
21 # --eval "
22 # (progn
23 # (setq org-publish-project-alist
24 # '(
25 # (\"project\"
26 # :base-directory \"$dir/org\"
27 # :base-extension \"org\"
28 # :publishing-directory \"$dir/html\"
29 # :recursive t
30 # :publishing-function org-publish-org-to-html
31 # :auto-preamble t)
32 # ))
34 # (org-publish-project \"project\"))" \
35 # \
36 # 2>&1 #| pcregrep 'Wrote'
38 emacs \
39 -l /home/r/.emacs \
40 --batch \
41 --eval "
42 (progn
43 (setq org-publish-project-alist
44 '(
45 (\"project\"
46 :base-directory \"$dir/org\"
47 :base-extension \"org\"
48 :publishing-directory \"$dir/html\"
49 :recursive t
50 :publishing-function org-html-publish-to-html
51 :auto-preamble t)
52 ))
54 (org-publish-project \"project\"))" \
55 \
56 2>&1 #| pcregrep 'Wrote'