3 ;;; $Id: TM-MK,v 7.43 1996/11/27 11:48:53 morioka Exp morioka $
7 (let (prefix exec-prefix)
8 (setq prefix (car command-line-args-left))
10 (not (string-equal "NONE" prefix))
12 (defvar PREFIX prefix)
13 (setq command-line-args-left (cdr command-line-args-left))
15 (setq exec-prefix (car command-line-args-left))
17 (defvar EXEC_PREFIX exec-prefix)
18 ;;(setq command-line-args-left (cdr command-line-args-left))
21 (load-file "../emu/EMU-ELS")
22 (load-file "../tl/TL-ELS")
23 (load-file "../bitmap-mule/BITMAP-ELS")
24 (load-file "../mu/MU-ELS")
25 (load-file "../mel/MEL-ELS")
27 (load-file "../tm-mh-e/TMH-ELS")
28 (load-file "../tm-mail/TMAIL-ELS")
29 (load-file "../tm-vm/TM-VM-ELS")
30 (princ (format "PREFIX=%s\tEXEC_PREFIX=%s\n" PREFIX EXEC_PREFIX))
33 (defun directory= (dir1 dir2)
34 (string= (file-name-as-directory dir1)(file-name-as-directory dir2))
37 (defun make-mime-setup (lisp-dir
38 tl-path bitmap-path mu-path mel-path tm-path)
39 (let ((buf (find-file "mime-setup.el.in")))
40 (goto-char (point-min))
41 (re-search-forward "^;;; Code:\n" nil t)
42 (setq buffer-read-only nil)
44 ;; generate tl setting
45 (let ((tl-absolute-path (expand-file-name tl-path lisp-dir)))
46 (if (MEMBER tl-absolute-path default-load-path
47 :test (function directory=))
48 (insert "\n(require \'tl-misc)")
57 \(add-path \"%s\")" tl-absolute-path tl-path))
60 ;; generate MU load-path setting
62 (or (MEMBER (expand-file-name bitmap-path lisp-dir)
64 :test (function directory=))
65 (insert (format "\n(add-path \"%s\")" bitmap-path))
68 ;; generate MU load-path setting
69 (or (MEMBER (expand-file-name mu-path lisp-dir)
71 :test (function directory=))
72 (insert (format "\n(add-path \"%s\")" mu-path))
75 ;; generate MEL load-path setting
76 (or (MEMBER (expand-file-name mel-path lisp-dir)
78 :test (function directory=))
79 (insert (format "\n(add-path \"%s\")" mel-path))
82 ;; generate tm load-path setting
83 (or (MEMBER (expand-file-name tm-path lisp-dir)
85 :test (function directory=))
86 (insert (format "\n(add-path \"%s\")" tm-path))
89 ;; generate tm external-methods path setting
90 (or (string= METHOD_DIR exec-directory)
92 (format "\n(defvar mime-viewer/external-progs %s)"
93 (let ((dir (file-relative-name METHOD_DIR data-directory)))
94 (if (< (length dir) (length METHOD_DIR))
95 (concat "\n (expand-file-name \""
96 dir "\" data-directory)")
97 (setq dir (file-relative-name METHOD_DIR
98 (expand-file-name "~/")))
99 (if (< (length dir) (length METHOD_DIR))
100 (concat "\n (expand-file-name \"~/"
102 (concat "\"" METHOD_DIR "\"")
106 (write-file "mime-setup.el")
116 (make-mime-setup LISPDIR
117 TL_RELATIVE_DIR BITMAP_RELATIVE_DIR
118 MU_RELATIVE_DIR MEL_RELATIVE_DIR
119 TM_KERNEL_RELATIVE_DIR)
120 (compile-elisp-modules emu-modules "../emu")
121 (compile-elisp-modules tl-modules "../tl")
122 (compile-elisp-modules bitmap-modules "../bitmap-mule")
123 (compile-elisp-modules mu-modules-to-compile "../mu")
124 (compile-elisp-modules mel-modules "../mel")
125 (compile-elisp-modules tm-modules-to-compile ".")
126 (compile-elisp-modules tm-mh-e-modules "../tm-mh-e")
127 (compile-elisp-module 'mime-setup ".")
129 (cond ((featurep 'gnus-ems)
130 (load "../gnus-mime/Gnus-MIME-ELS")
131 (compile-elisp-modules gnus-mime-modules-to-compile "../gnus-mime")
134 (load "../tm-gnus/TGNUS-ELS")
135 (compile-elisp-modules tm-gnus-modules-to-compile "../tm-gnus")
137 (compile-elisp-modules tm-mail-modules "../tm-mail")
138 (compile-elisp-modules tm-vm-modules-to-compile "../tm-vm")
143 (princ (format "%s\n" emacs-version))
144 (install-elisp-modules emu-modules "../emu" EMU_DIR)
145 (install-elisp-modules tl-modules "../tl" TL_DIR)
146 (install-elisp-modules bitmap-modules "../bitmap-mule" BITMAP_DIR)
147 (install-elisp-modules mu-modules "../mu" MU_DIR)
148 (install-elisp-modules mel-modules "../mel" MEL_DIR)
149 (install-elisp-modules tm-modules "." TM_KERNEL_DIR)
150 (install-elisp-modules tm-mh-e-modules "../tm-mh-e" TM_MHE_DIR)
153 (cond ((featurep 'gnus-ems)
154 (load "../gnus-mime/Gnus-MIME-ELS")
155 (install-elisp-modules gnus-mime-modules
156 "../gnus-mime" Gnus_MIME_DIR)
159 (load "../tm-gnus/TGNUS-ELS")
160 (install-elisp-modules tm-gnus-modules "../tm-gnus" TM_GNUS_DIR)
162 (install-elisp-modules tm-mail-modules "../tm-mail" TM_MAIL_DIR)
163 (install-elisp-modules tm-vm-modules "../tm-vm" TM_VM_DIR)
164 (install-elisp-modules '(mime-setup) "." SETUP_FILE_DIR)
167 (defun install-execs ()
169 (install-files BINS BIN_SRC_DIR BIN_DIR)
170 (install-files METHODS METHOD_SRC_DIR METHOD_DIR nil t)