In trying to export to a pdf in another directory specified with a
relative pathname as the destination, I kept running into errors.
It looks like `org-compile-file' does not handle such things gracefully.
I believe that `out-dir' here is redundant as `default-directory' is
already set to `out-dir':
(let ((output (concat out-dir base-name "." ext)))
and deleting it seems to cure the problems I am seeing.
Here is an ECM
--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC emacs-lisp
(make-directory "./tmp" t)
(shell-command "echo \"start...\" > ./tmp/ocf.txt")
(org-compile-file "./tmp/ocf.txt" '("echo \"done\" >> %b.txt") "txt")
#+END_SRC
#+RESULTS:
Results should be
: ocf.txt
and there should be no error messages.
--8<---------------cut here---------------end--------------->8---
Chuck