X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2FCOMPILE;h=11c2f6af5ace8ff57aaa59c3697a17f9cc5c6d99;hp=b4f4561de39b072ee1ca1b202b7da3499b896624;hb=2362928b17babcdeee7f1b4910cab1e816d5c93a;hpb=63ea7ab6dc97ca0d787509ae213455e7a0a2db0e diff --git a/lisp/COMPILE b/lisp/COMPILE index b4f4561..11c2f6a 100644 --- a/lisp/COMPILE +++ b/lisp/COMPILE @@ -116,6 +116,13 @@ WARNING: the last build, and then reconfigure. WARNING: ---------------------------------------------------------\n\n"))))) +(defun riece-compile-module () + (let ((load-path (cons nil load-path))) + (let ((source (expand-file-name + (concat (car command-line-args-left) ".el")))) + (if (file-newer-than-file-p source (concat source "c")) + (byte-compile-file source))))) + (defun riece-install-modules (modules dest just-print) (unless (or just-print (file-exists-p dest)) (make-directory dest t)) @@ -166,6 +173,9 @@ (if flag (string-match "^\\(\\(--[^ ]+ \\)+-\\|[^ =-]\\)*n" flag)))) +(defun riece-examine () + (princ (mapconcat #'symbol-name riece-modules " "))) + (defun riece-compile () (riece-compile-modules riece-modules))