3 (setq load-path (append
6 (expand-file-name path (getenv "PWD"))
8 '("." "../tl/" "../mel/")
19 (cond ((boundp 'NEMACS)
33 "tm-setup" "mime-setup"
35 (if (not (string-match "\\(XEmacs\\|Lucid\\)" emacs-version))
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 "vm.el" (car paths)))
52 (if (file-exists-p path)
55 (setq paths (cdr paths))
57 (setq tm-modules (append tm-modules '("tm-vm")))
58 (setq tm-uncompile-el-files
59 (append tm-uncompile-el-files '("tm-vm.el")))
63 (mapcar (function (lambda (module)
69 (mapcar (function (lambda (module)
70 (concat module ".elc")
75 (mapcar (function byte-compile-file) tm-el-files)
78 (defconst el-file-mode (+ (* 64 6)(* 8 4) 4))
80 (defun install-el (path file)
81 (let ((full-path (expand-file-name file path)))
82 (if (file-exists-p full-path)
83 (set-file-modes full-path el-file-mode)
85 (copy-file file full-path t t)
86 (princ (format "%s -> %s\n" file path))
89 (defun install-el-files (path &rest files)
90 (mapcar (function (lambda (file)
91 (if (file-exists-p file)
92 (install-el path file)
96 (defun install-elc (path file)
97 (let ((full-path (expand-file-name file path)))
98 (copy-file file full-path t t)
100 (princ (format "%s -> %s\n" file path))
103 (defun install-elc-files (path &rest files)
104 (mapcar (function (lambda (file)
105 (if (file-exists-p file)
106 (install-elc path file)
111 (let ((path (car command-line-args-left)))
112 (princ (format "%s\n" emacs-version))
113 (apply (function install-el-files) path
114 (append tm-el-files tm-uncompile-el-files)
116 (apply (function install-elc-files) path tm-elc-files)