summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2010-10-01 13:35:50 -0600
committerEric Schulte <schulte.eric@gmail.com>2010-10-01 13:40:18 -0600
commit4d48d10b6a31b1300999c3e86cd9f4c696227928 (patch)
treefa9644e969449b75b8f5af1703ef810271213092
parentc4916bb743a3ded8feab18417c9587238e977178 (diff)
downloadorg-mode-4d48d10b6a31b1300999c3e86cd9f4c696227928.tar.gz
improved tangling script in documentation
* doc/org.texi (Batch execution): improved tangling script in documentation
-rw-r--r--doc/org.texi9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/org.texi b/doc/org.texi
index 5590b5d..64ca8be 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -12361,17 +12361,18 @@ Be sure to adjust the paths to fit your system.
#!/bin/sh
# -*- mode: shell-script -*-
#
-# tangle a file with org-mode
+# tangle files with org-mode
#
DIR=`pwd`
FILES=""
+ORGINSTALL="~/src/org/lisp/org-install.el"
# wrap each argument in the code required to call tangle on it
for i in $@@; do
-FILES="$FILES \"$i\""
+ FILES="$FILES \"$i\""
done
-emacsclient \
+emacs -Q --batch -l $ORGINSTALL \
--eval "(progn
(add-to-list 'load-path (expand-file-name \"~/src/org/lisp/\"))
(add-to-list 'load-path (expand-file-name \"~/src/org/contrib/lisp/\"))
@@ -12379,7 +12380,7 @@ emacsclient \
(mapc (lambda (file)
(find-file (expand-file-name file \"$DIR\"))
(org-babel-tangle)
- (kill-buffer)) '($FILES)))"
+ (kill-buffer)) '($FILES)))" 2>&1 |grep tangled
@end example
@node Miscellaneous, Hacking, Working With Source Code, Top