diff weave.sh @ 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
children dc2ae5732141
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/weave.sh	Sat Oct 15 09:17:23 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 +echo $dir
    1.14 +emacs  \
    1.15 +-l /home/r/config/emacs/clojure-init.el \
    1.16 +-l /home/r/config/emacs/org-init.el \
    1.17 +-l /home/r/config/emacs/web-color.el \
    1.18 +--batch \
    1.19 +--eval "
    1.20 +(progn
    1.21 +(setq org-publish-project-alist
    1.22 +      '(
    1.23 +	(\"project\"
    1.24 +	 :base-directory \"$dir/org\"
    1.25 +	 :base-extension \"org\"
    1.26 +	 :publishing-directory \"$dir/html\"
    1.27 +	 :recursive t
    1.28 +	 :publishing-function org-publish-org-to-html
    1.29 +	 :auto-preamble t)
    1.30 +	))
    1.31 +
    1.32 +(org-publish-project \"project\"))" \
    1.33 +\
    1.34 +2>&1 | pcregrep 'Wrote'
    1.35 +
    1.36 +
    1.37 +