# HG changeset patch # User Robert McIntyre # Date 1318695837 25200 # Node ID a838c4a7fb70b70e867827fbf13382d49ade1c51 # Parent fd36f08d32c55fe740b4c7949446971604b8a8e1 changed the semantics of tangle to match weave diff -r fd36f08d32c5 -r a838c4a7fb70 tangle.sh --- a/tangle.sh Sat Oct 15 09:17:23 2011 -0700 +++ b/tangle.sh Sat Oct 15 09:23:57 2011 -0700 @@ -1,16 +1,15 @@ #!/bin/sh -# -*- mode: shell-script -*- -# -# tangle files with org-mode -# +# assumes that there is a ./org directory, and tangles +# each org file in it. + DIR=`pwd` FILES="" -# wrap each argument in the code required to call tangle on it -for i in $@; do +for i in $(find $DIR/org -name "*.org"); do FILES="$FILES \"$i\"" done + emacs -Q --batch \ --eval "(progn (add-to-list 'load-path (expand-file-name \"/home/r/config/emacs/extend/org-mode/lisp/\"))