Skip to content

Instantly share code, notes, and snippets.

@mumurik
Created March 1, 2012 05:32
Show Gist options
  • Save mumurik/1947549 to your computer and use it in GitHub Desktop.
Save mumurik/1947549 to your computer and use it in GitHub Desktop.
release related script
(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))))))
@mumurik
Copy link
Author

mumurik commented Mar 1, 2012

basedirはハードコードなので変更しないと使えない。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment