Mercurial > org-tools
changeset 1:fd36f08d32c5
added weave, which exports files to html.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 15 Oct 2011 09:17:23 -0700 |
parents | 341a5da5f196 |
children | a838c4a7fb70 |
files | tangle.sh weave.sh |
diffstat | 2 files changed, 34 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/tangle.sh Sat Oct 15 08:16:03 2011 -0700 1.2 +++ b/tangle.sh Sat Oct 15 09:17:23 2011 -0700 1.3 @@ -5,7 +5,6 @@ 1.4 # 1.5 DIR=`pwd` 1.6 FILES="" 1.7 -ORGINSTALL="/home/r/config/emacs/extend/org-mode/lisp/org-install.el" 1.8 1.9 # wrap each argument in the code required to call tangle on it 1.10 for i in $@; do
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/weave.sh Sat Oct 15 09:17:23 2011 -0700 2.3 @@ -0,0 +1,34 @@ 2.4 +#!/bin/sh 2.5 + 2.6 +# assumes ./org directory with org files to publish to 2.7 +# ./html 2.8 + 2.9 +#target=$(readlink -f $1) 2.10 + 2.11 +dir=`pwd` 2.12 + 2.13 +echo $dir 2.14 +emacs \ 2.15 +-l /home/r/config/emacs/clojure-init.el \ 2.16 +-l /home/r/config/emacs/org-init.el \ 2.17 +-l /home/r/config/emacs/web-color.el \ 2.18 +--batch \ 2.19 +--eval " 2.20 +(progn 2.21 +(setq org-publish-project-alist 2.22 + '( 2.23 + (\"project\" 2.24 + :base-directory \"$dir/org\" 2.25 + :base-extension \"org\" 2.26 + :publishing-directory \"$dir/html\" 2.27 + :recursive t 2.28 + :publishing-function org-publish-org-to-html 2.29 + :auto-preamble t) 2.30 + )) 2.31 + 2.32 +(org-publish-project \"project\"))" \ 2.33 +\ 2.34 +2>&1 | pcregrep 'Wrote' 2.35 + 2.36 + 2.37 +