Mercurial > org-tools
diff tangle.sh @ 2:a838c4a7fb70
changed the semantics of tangle to match weave
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 15 Oct 2011 09:23:57 -0700 |
parents | fd36f08d32c5 |
children | de36470a2f70 |
line wrap: on
line diff
1.1 --- a/tangle.sh Sat Oct 15 09:17:23 2011 -0700 1.2 +++ b/tangle.sh Sat Oct 15 09:23:57 2011 -0700 1.3 @@ -1,16 +1,15 @@ 1.4 #!/bin/sh 1.5 -# -*- mode: shell-script -*- 1.6 -# 1.7 -# tangle files with org-mode 1.8 -# 1.9 +# assumes that there is a ./org directory, and tangles 1.10 +# each org file in it. 1.11 + 1.12 DIR=`pwd` 1.13 FILES="" 1.14 1.15 -# wrap each argument in the code required to call tangle on it 1.16 -for i in $@; do 1.17 +for i in $(find $DIR/org -name "*.org"); do 1.18 FILES="$FILES \"$i\"" 1.19 done 1.20 1.21 + 1.22 emacs -Q --batch \ 1.23 --eval "(progn 1.24 (add-to-list 'load-path (expand-file-name \"/home/r/config/emacs/extend/org-mode/lisp/\"))