(let ((source (expand-file-name
(concat (symbol-name (car modules)) ".el"))))
(if (file-newer-than-file-p source (concat source "c"))
- (byte-compile-file source)))
+ (condition-case error
+ (byte-compile-file source)
+ (error))))
(setq modules (cdr modules)))))
(defun riece-install-modules (modules dest just-print)
t t))
(princ (format "%s.elc -> %s\n" name dest))
(unless just-print
- (copy-file (expand-file-name (concat name ".elc"))
- (expand-file-name (concat name ".elc") dest)
- t t)))
+ (if (file-exists-p (expand-file-name (concat name ".elc")))
+ (copy-file (expand-file-name (concat name ".elc"))
+ (expand-file-name (concat name ".elc") dest)
+ t t)
+ (princ (format "(%s was not successfully compiled, ignored)\n"
+ name)))))
(setq modules (cdr modules))))
(defun riece-install-just-print-p ()
2003-08-25 Daiki Ueno <ueno@unixuser.org>
+ * COMPILE (riece-compile-modules): Ignore errors during byte
+ compilation.
+ (riece-install-modules): If there lacks a compiled module, don't
+ attempt to install it.
+
* riece-options.el (riece-quit-timeout): Default to 10.
* riece.el (riece-dialogue-mode-map): Bind riece-command-change-layout.