# HG changeset patch # User Robert McIntyre # Date 1318695443 25200 # Node ID fd36f08d32c55fe740b4c7949446971604b8a8e1 # Parent 341a5da5f1968a5bceef31dcef7442ed479eb0f5 added weave, which exports files to html. diff -r 341a5da5f196 -r fd36f08d32c5 tangle.sh --- a/tangle.sh Sat Oct 15 08:16:03 2011 -0700 +++ b/tangle.sh Sat Oct 15 09:17:23 2011 -0700 @@ -5,7 +5,6 @@ # DIR=`pwd` FILES="" -ORGINSTALL="/home/r/config/emacs/extend/org-mode/lisp/org-install.el" # wrap each argument in the code required to call tangle on it for i in $@; do diff -r 341a5da5f196 -r fd36f08d32c5 weave.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/weave.sh Sat Oct 15 09:17:23 2011 -0700 @@ -0,0 +1,34 @@ +#!/bin/sh + +# assumes ./org directory with org files to publish to +# ./html + +#target=$(readlink -f $1) + +dir=`pwd` + +echo $dir +emacs \ +-l /home/r/config/emacs/clojure-init.el \ +-l /home/r/config/emacs/org-init.el \ +-l /home/r/config/emacs/web-color.el \ +--batch \ +--eval " +(progn +(setq org-publish-project-alist + '( + (\"project\" + :base-directory \"$dir/org\" + :base-extension \"org\" + :publishing-directory \"$dir/html\" + :recursive t + :publishing-function org-publish-org-to-html + :auto-preamble t) + )) + +(org-publish-project \"project\"))" \ +\ +2>&1 | pcregrep 'Wrote' + + +