Created
March 1, 2012 05:32
-
-
Save mumurik/1947549 to your computer and use it in GitHub Desktop.
release related script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require "glob") | |
(defvar basedir "your-path-to-your-release-dir") | |
(defun batch-compile(dirname) | |
(byte-compile-dir (merge-pathnames "lisp" (merge-pathnames dirname basedir)))) | |
(defun byte-compile-dir(dir) | |
(interactive "DByte compile files under: ") | |
(glob-exec (glob-expand dir) | |
:recursive nil | |
:file-only t :wild "*.l" | |
:callback | |
#'(lambda (f) | |
(let* ((file (merge-pathnames f dir)) | |
(filec (concat file "c"))) | |
(if (file-newer-than-file-p file filec) | |
(byte-compile-file file)))))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
basedirはハードコードなので変更しないと使えない。