3 ;;; $Id: mk-tmh,v 2.0 1995/12/25 05:48:21 morioka Exp morioka $
6 (setq load-path (append
9 (expand-file-name path (getenv "PWD"))
11 '("." ".." "../../tl/" "../../mel/")
21 (if (not (boundp 'mh-e-version))
26 (setq tm-mh-e-el-files
27 (mapcar (function (lambda (module)
32 (setq tm-mh-e-elc-files
33 (mapcar (function (lambda (module)
34 (concat module ".elc")
38 (defun compile-tm-mh-e ()
42 (mapcar (function byte-compile-file) tm-mh-e-el-files)
45 (defconst el-file-mode (+ (* 64 6)(* 8 4) 4))
47 (defun install-el (path file)
48 (let ((full-path (expand-file-name file path)))
49 (if (file-exists-p full-path)
50 (set-file-modes full-path el-file-mode)
52 (copy-file file full-path t t)
53 (princ (format "%s -> %s\n" file path))
56 (defun install-el-files (path &rest files)
57 (mapcar (function (lambda (file)
58 (if (file-exists-p file)
59 (install-el path file)
63 (defun install-elc (path file)
64 (let ((full-path (expand-file-name file path)))
65 (copy-file file full-path t t)
67 (princ (format "%s -> %s\n" file path))
70 (defun install-elc-files (path &rest files)
71 (mapcar (function (lambda (file)
72 (if (file-exists-p file)
73 (install-elc path file)
77 (defun install-tm-mh-e ()
78 (let ((path (car command-line-args-left)))
79 (princ (format "%s\n" emacs-version))
80 (if (not (file-exists-p path))
81 (make-directory path t)
83 (apply (function install-el-files) path tm-mh-e-el-files)
84 (apply (function install-elc-files) path tm-mh-e-elc-files)
85 (setq command-line-args-left (cdr command-line-args-left))