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