Mercurial > org-tools
diff 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 |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/old-weave.sh Mon Oct 24 09:29:17 2011 -0700 1.3 @@ -0,0 +1,34 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +# assumes ./org directory with org files to publish to 1.7 +# ./html 1.8 + 1.9 +#target=$(readlink -f $1) 1.10 + 1.11 +dir=`pwd` 1.12 + 1.13 +emacs \ 1.14 +-l /home/r/config/emacs/clojure-init.el \ 1.15 +-l /home/r/config/emacs/org-init.el \ 1.16 +-l /home/r/config/emacs/web-color.el \ 1.17 +--batch \ 1.18 +--eval " 1.19 +(progn 1.20 +(setq org-publish-project-alist 1.21 + '( 1.22 + (\"project\" 1.23 + :base-directory \"$dir/org\" 1.24 + :base-extension \"org\" 1.25 + :publishing-directory \"$dir/html\" 1.26 + :recursive t 1.27 + :publishing-function org-publish-org-to-html 1.28 + :auto-preamble t) 1.29 + )) 1.30 + 1.31 +(org-publish-project \"project\"))" \ 1.32 +\ 1.33 +2>&1 #| pcregrep 'Wrote' 1.34 + 1.35 + 1.36 + 1.37 +