comparison tangle.sh @ 4:de36470a2f70

simplified tangle
author Robert McIntyre <rlm@mit.edu>
date Sun, 16 Oct 2011 08:23:26 -0700
parents a838c4a7fb70
children 73beed20f7de
comparison
equal deleted inserted replaced
3:dc2ae5732141 4:de36470a2f70
8 for i in $(find $DIR/org -name "*.org"); do 8 for i in $(find $DIR/org -name "*.org"); do
9 FILES="$FILES \"$i\"" 9 FILES="$FILES \"$i\""
10 done 10 done
11 11
12 12
13 emacs -Q --batch \ 13 emacs --batch \
14 -l /home/r/config/emacs/clojure-init.el \
15 -l /home/r/config/emacs/org-init.el \
14 --eval "(progn 16 --eval "(progn
15 (add-to-list 'load-path (expand-file-name \"/home/r/config/emacs/extend/org-mode/lisp/\"))
16 (add-to-list 'load-path (expand-file-name \"/home/r/config/emacs/extend/org-mode/contrib/lisp/\"))
17 (require 'org)(require 'org-exp)(require 'ob)(require 'ob-tangle)
18 (mapc (lambda (file) 17 (mapc (lambda (file)
19 (find-file (expand-file-name file \"$DIR\")) 18 (find-file (expand-file-name file \"$DIR\"))
20 (org-babel-tangle) 19 (org-babel-tangle)
21 (kill-buffer)) '($FILES)))" 2>&1 | pcregrep '(Wrote)|(tangled)' 20 (kill-buffer)) '($FILES)))" 2>&1 | pcregrep '(Wrote)|(tangled)'