From a6ccd4ad95167457175710e767365cdff65dc359 Mon Sep 17 00:00:00 2001 From: Ethan Ligon Date: Thu, 7 Apr 2016 21:05:27 +0000 Subject: [PATCH] org.texi: Replace broken example script for batch execution * doc/org.texi: Example bash script to tangle from *.org file was broken and obsolete; fixed to now work with recent versions of Org. There is an example bash script in section 14.12 of the Org manual which is meant to tangle source blocks from a supplied list of Org files. The present version is broken in several small ways (it appears to date from a period when babel was still part of contrib), and requires a hard-coded specification of the path ORG_HOME. I've fixed the issue with ORG_HOME, another issue with grepping for strings that no longer are emitted by ob-tangle, and removed some obsolete dependencies. I'm finding the corrected script a useful thing to call from makefiles. --- doc/org.texi | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 8b8dc65e3..f9356925d 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -16838,14 +16838,12 @@ for i in $@@; do done emacs -Q --batch \ ---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/\" t)) -(require 'org)(require 'org-exp)(require 'ob)(require 'ob-tangle) -(mapc (lambda (file) - (find-file (expand-file-name file \"$DIR\")) - (org-babel-tangle) - (kill-buffer)) '($FILES)))" 2>&1 |grep tangled + --eval "(progn + (require 'org)(require 'ob)(require 'ob-tangle) + (mapc (lambda (file) + (find-file (expand-file-name file \"$DIR\")) + (org-babel-tangle) + (kill-buffer)) '($FILES)))" 2>&1 |grep -i tangled @end example @node Miscellaneous