3 ;;; $Id: TM-CFG,v 7.1 1996/05/27 15:09:09 morioka Exp morioka $
6 (defvar default-load-path load-path)
7 (setq load-path (append
10 (expand-file-name path (getenv "PWD"))
12 '("." "../tl" "../mel" "mh-e")
19 ;;; @ Please specify optional package directory if you use them.
22 ;; Please specify VM path.
23 (add-path "vm-5.95beta" 'all-paths)
25 ;; Please specify Mailcrypt path.
26 (add-path "mailcrypt-3.4" 'all-paths)
28 ;; Please specify BBDB path.
29 (add-path "bbdb-1.50" 'all-paths)
35 ;; Please specify shell command path.
36 (setq SHELL "/bin/sh")
38 ;; Please specify shell command option.
39 (setq SHELLOPTION "-c")
42 ;;; @ Please specify prefix of install directory.
45 ;; Please specify install path prefix.
47 (if (or running-emacs-18 running-xemacs)
48 (expand-file-name "../../.." exec-directory)
49 (expand-file-name "../../../.." data-directory)
50 )) ; install to shared directory (maybe "/usr/local")
51 ;;(setq PREFIX "~/") ; install to your home directory
53 ;; Please specify install path prefix for binaries.
55 (if (or running-emacs-18 running-xemacs)
56 (expand-file-name "../../.." exec-directory)
57 (expand-file-name "../../../.." exec-directory)
59 ;;(setq EXEC_PREFIX "~/") ; install to your home directory
61 ;; Please specify tm package prefix [optional]
62 (setq TM_PACKAGE_PREFIX "")
64 ;; Please specify tl prefix [optional]
65 ;;(setq TL_PREFIX "tl")
67 (if (string-match "XEmacs" emacs-version)
71 ;; Please specify MEL prefix [optional]
72 (setq MEL_PREFIX "mel")
74 ;; Please specify tm prefix [optional]
77 ;; lisp files of tm are installed into following directory tree:
79 ;; LISPDIR = PREFIX/DATA_PREFIX/LISP_PREFIX/
80 ;; LISPDIR/mime-setup.{el|elc}
81 ;; LISPDIR/TM_PACKAGE_PREFIX/TL_PREFIX/ --- tl lisp files
82 ;; LISPDIR/TM_PACKAGE_PREFIX/MEL_PREFIX/ --- MEL lisp files
83 ;; LISPDIR/TM_PACKAGE_PREFIX/TM_PREFIX/ --- tm lisp files
85 ;; For example, if PREFIX = "/usr/local/" and you use Emacs 19.30,
87 ;; LISPDIR = /usr/local/share/emacs/site-lisp/
88 ;; /usr/local/share/emacs/site-lisp/mime-setup.{el|elc}
89 ;; /usr/local/share/emacs/site-lisp/ --- tl lisp files
90 ;; /usr/local/share/emacs/site-lisp/mel/ --- MEL lisp files
91 ;; /usr/local/share/emacs/site-lisp/tm/ --- tm lisp files
93 ;; For example, if PREFIX = "~/" and you use XEmacs,
95 ;; LISPDIR = ~/share/xemacs/site-lisp/
96 ;; ~/share/xemacs/site-lisp/mime-setup.{el|elc}
97 ;; ~/share/xemacs/site-lisp/tl/ --- tl lisp files
98 ;; ~/share/xemacs/site-lisp/mel/ --- MEL lisp files
99 ;; ~/share/xemacs/site-lisp/tm/ --- tm lisp files
105 ;; Please specify binary path.
106 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
108 ;; Please specify binary path. (for external method scripts)
109 (setq METHOD_DIR (expand-file-name "share/tm" PREFIX))
114 ;;; @ optional settings
118 (if (>= emacs-major-version 19)
125 (let ((rest default-load-path)
127 (while (setq dir (car rest))
129 (expand-file-name (concat ".*/" LISP_PREFIX) PREFIX) dir)
130 (throw 'tag (substring dir 0 (match-end 0)))
132 (setq rest (cdr rest))
134 (expand-file-name (concat
138 (cond ((boundp 'NEMACS) "nemacs/")
139 ((boundp 'MULE) "mule/")
148 ;; Please specify mime-setup.{el|elc} install path.
149 (setq SETUP_FILE_DIR LISPDIR)
151 (setq TM_LISPDIR (expand-file-name TM_PACKAGE_PREFIX LISPDIR))
153 (setq TL_DIR (expand-file-name TL_PREFIX TM_LISPDIR))
154 (setq MEL_DIR (expand-file-name MEL_PREFIX TM_LISPDIR))
155 (setq TM_KERNEL_DIR (expand-file-name TM_PREFIX TM_LISPDIR))
156 (setq TM_MHE_DIR TM_KERNEL_DIR)
157 (setq TM_GNUS_DIR TM_KERNEL_DIR)
159 (setq TM_GNUS_INSTALL_FORMAT
160 "cd gnus; PWD=`pwd` make install-19 EMACS=%s TMDIR19=%s")
161 (setq TM_GNUS_COMPILE ".gnus-compile")
164 (setq el-file-mode (+ (* 64 6)(* 8 4) 4))
167 (setq BIN_SRC_DIR "src")
168 (setq BINS '("ol2" "decode-b"))
169 (setq METHOD_SRC_DIR "methods")
171 '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg" "tm-plain"