Mercurial > org-tools
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/sh2 # -*- mode: shell-script -*-3 #4 # tangle files with org-mode5 #6 DIR=`pwd`7 FILES=""9 # wrap each argument in the code required to call tangle on it10 for i in $@; do11 FILES="$FILES \"$i\""12 done14 emacs -Q --batch \15 --eval "(progn16 (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)'