3 (setq load-path (append
6 (expand-file-name path (getenv "PWD"))
8 '("." ".." "../../tl/" "../../mel/")
18 (if (not (boundp 'mh-e-version))
23 (setq tm-mh-e-el-files
24 (mapcar (function (lambda (module)
29 (setq tm-mh-e-elc-files
30 (mapcar (function (lambda (module)
31 (concat module ".elc")
35 (defun compile-tm-mh-e ()
39 (mapcar (function byte-compile-file) tm-mh-e-el-files)
42 (defconst el-file-mode (+ (* 64 6)(* 8 4) 4))
44 (defun install-el (path file)
45 (let ((full-path (expand-file-name file path)))
46 (if (file-exists-p full-path)
47 (set-file-modes full-path el-file-mode)
49 (copy-file file full-path t t)
50 (princ (format "%s -> %s\n" file path))
53 (defun install-el-files (path &rest files)
54 (mapcar (function (lambda (file)
55 (if (file-exists-p file)
56 (install-el path file)
60 (defun install-elc (path file)
61 (let ((full-path (expand-file-name file path)))
62 (copy-file file full-path t t)
64 (princ (format "%s -> %s\n" file path))
67 (defun install-elc-files (path &rest files)
68 (mapcar (function (lambda (file)
69 (if (file-exists-p file)
70 (install-elc path file)
74 (defun install-tm-mh-e ()
75 (let ((path (car command-line-args-left)))
76 (princ (format "%s\n" emacs-version))
77 (if (not (file-exists-p path))
78 (make-directory path t)
80 (apply (function install-el-files) path tm-mh-e-el-files)
81 (apply (function install-elc-files) path tm-mh-e-elc-files)