annotate tangle.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 341a5da5f196
children a838c4a7fb70
rev   line source
rlm@0 1 #!/bin/sh
rlm@0 2 # -*- mode: shell-script -*-
rlm@0 3 #
rlm@0 4 # tangle files with org-mode
rlm@0 5 #
rlm@0 6 DIR=`pwd`
rlm@0 7 FILES=""
rlm@0 8
rlm@0 9 # wrap each argument in the code required to call tangle on it
rlm@0 10 for i in $@; do
rlm@0 11 FILES="$FILES \"$i\""
rlm@0 12 done
rlm@0 13
rlm@0 14 emacs -Q --batch \
rlm@0 15 --eval "(progn
rlm@0 16 (add-to-list 'load-path (expand-file-name \"/home/r/config/emacs/extend/org-mode/lisp/\"))
rlm@0 17 (add-to-list 'load-path (expand-file-name \"/home/r/config/emacs/extend/org-mode/contrib/lisp/\"))
rlm@0 18 (require 'org)(require 'org-exp)(require 'ob)(require 'ob-tangle)
rlm@0 19 (mapc (lambda (file)
rlm@0 20 (find-file (expand-file-name file \"$DIR\"))
rlm@0 21 (org-babel-tangle)
rlm@0 22 (kill-buffer)) '($FILES)))" 2>&1 | pcregrep '(Wrote)|(tangled)'