From: Daiki Ueno Date: Fri, 12 Aug 2005 08:23:12 +0000 (+0000) Subject: * COMPILE (riece-compile-module): New function. X-Git-Url: http://cgit.sxemacs.org/?a=commitdiff_plain;h=2362928b17babcdeee7f1b4910cab1e816d5c93a;p=riece * COMPILE (riece-compile-module): New function. (riece-examine): New function. * Makefile.am (compile-individually): New rule. --- 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)) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 516cdbd..3a3aed3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,10 @@ 2005-08-12 Daiki Ueno + * COMPILE (riece-compile-module): New function. + (riece-examine): New function. + + * Makefile.am (compile-individually): New rule. + * riece-log.el (riece-log-file-name-regexp): New constant. (riece-log-get-file): Add 2nd argument coding-system. (riece-log-get-files): Add 2nd argument time. diff --git a/lisp/Makefile.am b/lisp/Makefile.am index e15d83b..c6c8d43 100644 --- a/lisp/Makefile.am +++ b/lisp/Makefile.am @@ -41,3 +41,11 @@ install-package: package check-local: $(EMACS) $(FLAGS) -l COMPILE -f riece-test lunit-report.xml + +compile-individually: + @for i in `$(EMACS) $(FLAGS) -l COMPILE -f riece-examine`; do \ + echo $(EMACS) $(FLAGS) -l COMPILE \ + -f riece-compile-module $$i; \ + $(EMACS) $(FLAGS) -l COMPILE \ + -f riece-compile-module $$i; \ + done