3 ;;; $Id: mk-tmh,v 3.0 1996/03/04 09:22:37 morioka Exp morioka $
6 (setq load-path (append
9 (expand-file-name path (getenv "PWD"))
11 '("." ".." "../../tl/" "../../mel/")
20 (defun compile-tm-mh-e ()
24 (mapcar (function byte-compile-file) tm-mh-e-el-files)
27 (defconst el-file-mode (+ (* 64 6)(* 8 4) 4))
29 (defun install-el (path file)
30 (let ((full-path (expand-file-name file path)))
31 (if (file-exists-p full-path)
32 (set-file-modes full-path el-file-mode)
34 (copy-file file full-path t t)
35 (princ (format "%s -> %s\n" file path))
38 (defun install-el-files (path &rest files)
39 (mapcar (function (lambda (file)
40 (if (file-exists-p file)
41 (install-el path file)
45 (defun install-elc (path file)
46 (let ((full-path (expand-file-name file path)))
47 (copy-file file full-path t t)
49 (princ (format "%s -> %s\n" file path))
52 (defun install-elc-files (path &rest files)
53 (mapcar (function (lambda (file)
54 (if (file-exists-p file)
55 (install-elc path file)
59 (defun install-tm-mh-e ()
60 (let ((path (car command-line-args-left)))
61 (princ (format "%s\n" emacs-version))
62 (if (not (file-exists-p path))
63 (make-directory path t)
65 (apply (function install-el-files) path tm-mh-e-el-files)
66 (apply (function install-elc-files) path tm-mh-e-elc-files)
67 (setq command-line-args-left (cdr command-line-args-left))