OSDN Git Service

simply use autotools macro to set version numbers in *.el
[howm/howm.git] / bcomp.el.in
1 ;;; -*- Emacs-Lisp -*-
2 (require 'cl)
3
4 (setq bcomp-files
5       '(
6         @howm_LISP@
7         ))
8
9 (let* ((dir (expand-file-name default-directory))
10        (load-path (cons dir load-path))
11        file)
12   (message "deleting old .elc files...")
13   (dolist (elt bcomp-files)
14     (setq file (concat dir elt "c"))
15     (if (file-exists-p file)
16         (delete-file file)))
17
18   (message "compiling...")
19   (dolist (elt bcomp-files)
20     (setq file (concat dir elt))
21     (byte-compile-file file t))
22
23   (message "done"))