Skip to content

Commit

Permalink
Done compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Mar 16, 2022
1 parent cc5ead8 commit f242227
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions lisp/compile.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,26 @@
"_prepare.el"
(file-name-directory (nth 1 (member "-scriptload" command-line-args)))))

(defun eask--f-entries (path pattern)
"Return entries from PATH with PATTERN."
(when (file-directory-p path)
(cl-remove-if-not
(lambda (file) (string-match-p pattern file))
(directory-files-recursively path "^\\([^.]\\|\\.[^.]\\|\\.\\..\\)"))))

(defun eask--byte-compile-file (filename)
"Byte compile FILENAME with display messages."
(message "Compiling file... %s" filename)
(byte-compile-file filename)
(message "Done compile, %s" filename))

(eask-start
;; TODO: ..
(message ">> %s" eask-package-file)
(message ">> %s" package-archives)
(byte-compile-file eask-package-file)
(package-initialize)
(package-refresh-contents)
(dolist (pattern eask-files)
(message "%s" (directory-files default-directory t pattern))
)
)
(dolist (filename (eask--f-entries default-directory pattern))
(add-to-list 'load-path (file-name-directory filename))
(eask--byte-compile-file filename)))
(eask--byte-compile-file eask-package-file))

;;; compile.el ends here

0 comments on commit f242227

Please sign in to comment.