3 ;;; $Id: mk-tm,v 6.0 1995/10/26 09:32:03 morioka Exp morioka $
6 (setq load-path (append
9 (expand-file-name path (getenv "PWD"))
11 '("." "../tl/" "../mel/")
22 (cond ((boundp 'NEMACS)
33 "tm-ew-d" "tm-ew-e" "tm-eword"
34 "tm-parse" "tm-view" "tm-play"
35 "tm-latex" "tm-w3" "tm-tar" "tm-partial"
37 "tm-setup" "mime-setup"
40 (if (or (< emacs-major-version 19)(< emacs-minor-version 29))
48 (setq tm-uncompile-el-files '("sc-setup.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.elc" (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")))
78 (if (file-exists-p "tm-evs.el")
79 (setq tm-modules (append tm-modules '("tm-evs")))
83 (mapcar (function (lambda (module)
89 (mapcar (function (lambda (module)
90 (concat module ".elc")
95 (mapcar (function byte-compile-file file) tm-el-files)
98 (defconst el-file-mode (+ (* 64 6)(* 8 4) 4))
100 (defun install-el (path file)
101 (let ((full-path (expand-file-name file path)))
102 (if (file-exists-p full-path)
103 (set-file-modes full-path el-file-mode)
105 (copy-file file full-path t t)
106 (princ (format "%s -> %s\n" file path))
109 (defun install-el-files (path &rest files)
110 (mapcar (function (lambda (file)
111 (if (file-exists-p file)
112 (install-el path file)
116 (defun install-elc (path file)
117 (let ((full-path (expand-file-name file path)))
118 (copy-file file full-path t t)
120 (princ (format "%s -> %s\n" file path))
123 (defun install-elc-files (path &rest files)
124 (mapcar (function (lambda (file)
125 (if (file-exists-p file)
126 (install-elc path file)
131 (let ((path (car command-line-args-left)))
132 (princ (format "%s\n" emacs-version))
133 (if (not (file-exists-p path))
134 (make-directory path t)
136 (apply (function install-el-files) path
137 (append tm-el-files tm-uncompile-el-files)
139 (apply (function install-elc-files) path tm-elc-files)