Mercurial > org-tools
view tangle.sh @ 22:7f2dd8def391
added links.sh, to reliably distribute binaries.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 13 Jun 2013 22:00:31 -0400 |
parents | 73beed20f7de |
children |
line wrap: on
line source
1 #!/bin/sh2 # assumes that there is a ./org directory, and tangles3 # each org file in it.5 DIR=`pwd`6 FILES=""8 for i in $(find $DIR/org -name "*.org"); do9 FILES="$FILES \"$i\""10 done13 emacs --batch \14 -l /home/r/config/emacs/clojure-init.el \15 -l /home/r/config/emacs/org-init.el \16 --eval "(progn17 (mapc (lambda (file)18 (find-file (expand-file-name file \"$DIR\"))19 (org-babel-tangle)20 (kill-buffer)) '($FILES)))"