comparison 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
comparison
equal deleted inserted replaced
1:fd36f08d32c5 2:a838c4a7fb70
1 #!/bin/sh 1 #!/bin/sh
2 # -*- mode: shell-script -*- 2 # assumes that there is a ./org directory, and tangles
3 # 3 # each org file in it.
4 # tangle files with org-mode 4
5 #
6 DIR=`pwd` 5 DIR=`pwd`
7 FILES="" 6 FILES=""
8 7
9 # wrap each argument in the code required to call tangle on it 8 for i in $(find $DIR/org -name "*.org"); do
10 for i in $@; do
11 FILES="$FILES \"$i\"" 9 FILES="$FILES \"$i\""
12 done 10 done
11
13 12
14 emacs -Q --batch \ 13 emacs -Q --batch \
15 --eval "(progn 14 --eval "(progn
16 (add-to-list 'load-path (expand-file-name \"/home/r/config/emacs/extend/org-mode/lisp/\")) 15 (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/\")) 16 (add-to-list 'load-path (expand-file-name \"/home/r/config/emacs/extend/org-mode/contrib/lisp/\"))