3 ;;; $Id: mk-tm,v 4.0 1995/09/26 12:35: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-parse" "tm-view" "tm-play"
33 "tm-latex" "tm-w3" "tm-tar"
35 "tm-setup" "mime-setup"
38 (if (or (< emacs-major-version 19)(< emacs-minor-version 29))
46 (setq tm-uncompile-el-files '("tm-partial.el"))
49 (let ((paths load-path) path)
51 (setq path (expand-file-name "ange-ftp.el" (car paths)))
52 (if (file-exists-p path)
55 (setq paths (cdr paths))
57 (setq tm-modules (append tm-modules '("tm-ftp")))
58 (setq tm-uncompile-el-files
59 (append tm-uncompile-el-files '("tm-ftp.el")))
63 (let ((paths load-path) path)
65 (setq path (expand-file-name "vm.el" (car paths)))
66 (if (file-exists-p path)
69 (setq paths (cdr paths))
71 (setq tm-modules (append tm-modules '("tm-vm")))
72 (setq tm-uncompile-el-files
73 (append tm-uncompile-el-files '("tm-vm.el")))
77 (mapcar (function (lambda (module)
83 (mapcar (function (lambda (module)
84 (concat module ".elc")
89 (mapcar (function byte-compile-file file) tm-el-files)
92 (defconst el-file-mode (+ (* 64 6)(* 8 4) 4))
94 (defun install-el (path file)
95 (let ((full-path (expand-file-name file path)))
96 (if (file-exists-p full-path)
97 (set-file-modes full-path el-file-mode)
99 (copy-file file full-path t t)
100 (princ (format "%s -> %s\n" file path))
103 (defun install-el-files (path &rest files)
104 (mapcar (function (lambda (file)
105 (if (file-exists-p file)
106 (install-el path file)
110 (defun install-elc (path file)
111 (let ((full-path (expand-file-name file path)))
112 (copy-file file full-path t t)
114 (princ (format "%s -> %s\n" file path))
117 (defun install-elc-files (path &rest files)
118 (mapcar (function (lambda (file)
119 (if (file-exists-p file)
120 (install-elc path file)
125 (let ((path (car command-line-args-left)))
126 (princ (format "%s\n" emacs-version))
127 (if (not (file-exists-p path))
128 (make-directory path t)
130 (apply (function install-el-files) path
131 (append tm-el-files tm-uncompile-el-files)
133 (apply (function install-elc-files) path tm-elc-files)