annotate tangle.sh @ 15:6ef9ccf7a17e

fixed critical english bug
author Robert McIntyre <rlm@mit.edu>
date Wed, 26 Oct 2011 05:13:16 -0700
parents 73beed20f7de
children
rev   line source
rlm@0 1 #!/bin/sh
rlm@2 2 # assumes that there is a ./org directory, and tangles
rlm@2 3 # each org file in it.
rlm@2 4
rlm@0 5 DIR=`pwd`
rlm@0 6 FILES=""
rlm@0 7
rlm@2 8 for i in $(find $DIR/org -name "*.org"); do
rlm@0 9 FILES="$FILES \"$i\""
rlm@0 10 done
rlm@0 11
rlm@2 12
rlm@4 13 emacs --batch \
rlm@4 14 -l /home/r/config/emacs/clojure-init.el \
rlm@4 15 -l /home/r/config/emacs/org-init.el \
rlm@0 16 --eval "(progn
rlm@0 17 (mapc (lambda (file)
rlm@0 18 (find-file (expand-file-name file \"$DIR\"))
rlm@0 19 (org-babel-tangle)
rlm@8 20 (kill-buffer)) '($FILES)))"