Function: batch-byte-recompile-directory
batch-byte-recompile-directory is an autoloaded and byte-compiled
function defined in bytecomp.el.gz.
Signature
(batch-byte-recompile-directory &optional ARG)
Documentation
Run byte-recompile-directory on the dirs remaining on the command line.
Must be used only with -batch, and kills Emacs on completion.
For example, invoke emacs -batch -f batch-byte-recompile-directory ..
Optional argument ARG is passed as second argument ARG to
byte-recompile-directory; see there for its possible values
and corresponding effects.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/bytecomp.el.gz
;;;###autoload
(defun batch-byte-recompile-directory (&optional arg)
"Run `byte-recompile-directory' on the dirs remaining on the command line.
Must be used only with `-batch', and kills Emacs on completion.
For example, invoke `emacs -batch -f batch-byte-recompile-directory .'.
Optional argument ARG is passed as second argument ARG to
`byte-recompile-directory'; see there for its possible values
and corresponding effects."
;; command-line-args-left is what is left of the command line (startup.el)
(defvar command-line-args-left) ;Avoid 'free variable' warning
(if (not noninteractive)
(error "batch-byte-recompile-directory is to be used only with -batch"))
;; Better crash loudly than attempting to recover from undefined
;; behavior.
(setq attempt-stack-overflow-recovery nil
attempt-orderly-shutdown-on-fatal-signal nil)
(or command-line-args-left
(setq command-line-args-left '(".")))
(while command-line-args-left
(byte-recompile-directory (car command-line-args-left) arg)
(setq command-line-args-left (cdr command-line-args-left)))
(kill-emacs 0))