3 ;;; $Id: mk-tm,v 2.0 1995/09/04 00:50:39 morioka Exp morioka $
6 (setq load-path (append
9 (expand-file-name path (getenv "PWD"))
11 '("." "../tl/" "../mel/")
22 (cond ((boundp 'NEMACS)
32 "tiny-mime" "tm-def" "tm-view"
35 "tm-setup" "mime-setup"
37 (if (not (string-match "\\(XEmacs\\|Lucid\\)" emacs-version))
40 (if (or (< emacs-major-version 19)(< emacs-minor-version 29))
48 (setq tm-uncompile-el-files '("tm-partial.el"))
51 (let ((paths load-path) path)
53 (setq path (expand-file-name "ange-ftp.el" (car paths)))
54 (if (file-exists-p path)
57 (setq paths (cdr paths))
59 (setq tm-modules (append tm-modules '("tm-ftp")))
60 (setq tm-uncompile-el-files
61 (append tm-uncompile-el-files '("tm-ftp.el")))
65 (let ((paths load-path) path)
67 (setq path (expand-file-name "vm.el" (car paths)))
68 (if (file-exists-p path)
71 (setq paths (cdr paths))
73 (setq tm-modules (append tm-modules '("tm-vm")))
74 (setq tm-uncompile-el-files
75 (append tm-uncompile-el-files '("tm-vm.el")))
79 (mapcar (function (lambda (module)
85 (mapcar (function (lambda (module)
86 (concat module ".elc")
91 (mapcar (function byte-compile-file) tm-el-files)
94 (defconst el-file-mode (+ (* 64 6)(* 8 4) 4))
96 (defun install-el (path file)
97 (let ((full-path (expand-file-name file path)))
98 (if (file-exists-p full-path)
99 (set-file-modes full-path el-file-mode)
101 (copy-file file full-path t t)
102 (princ (format "%s -> %s\n" file path))
105 (defun install-el-files (path &rest files)
106 (mapcar (function (lambda (file)
107 (if (file-exists-p file)
108 (install-el path file)
112 (defun install-elc (path file)
113 (let ((full-path (expand-file-name file path)))
114 (copy-file file full-path t t)
116 (princ (format "%s -> %s\n" file path))
119 (defun install-elc-files (path &rest files)
120 (mapcar (function (lambda (file)
121 (if (file-exists-p file)
122 (install-elc path file)
127 (let ((path (car command-line-args-left)))
128 (princ (format "%s\n" emacs-version))
129 (apply (function install-el-files) path
130 (append tm-el-files tm-uncompile-el-files)
132 (apply (function install-elc-files) path tm-elc-files)