tm 7.60.
[elisp/tm.git] / TM-CFG
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: TM-CFG,v 6.0 1996/05/11 10:33:20 morioka Exp morioka $
4 ;;;
5
6 (setq load-path (append
7                  (mapcar (function
8                           (lambda (path)
9                             (expand-file-name path (getenv "PWD"))
10                             ))
11                          '("." "../tl" "../mel" "mh-e")
12                          )
13                  load-path))
14
15 (require 'tl-misc)
16
17
18 ;;; @ Please specify optional package directory if you use them.
19 ;;;
20
21 ;; Please specify VM path.
22 (add-path "vm-5.95beta" 'all-paths)
23
24 ;; Please specify Mailcrypt path.
25 (add-path "mailcrypt-3.4" 'all-paths)
26
27 ;; Please specify BBDB path.
28 (add-path "bbdb-1.50" 'all-paths)
29
30
31 ;;; @ shell
32 ;;;
33
34 ;; Please specify shell command path.
35 (setq SHELL "/bin/sh")
36
37 ;; Please specify shell command option.
38 (setq SHELLOPTION "-c")
39
40
41 ;;; @ Please specify prefix of install directory.
42 ;;;
43
44 ;; Please specify install path prefix.
45 ;;(setq PREFIX "~/")            ; install to you home directory
46 (setq PREFIX "/usr/local/")     ; install to shared directory
47 ;;(setq PREFIX "/lab/local/")
48
49 ;; Please specify tm package prefix [optional]
50 (setq TM_PACKAGE_PREFIX "")
51
52 ;; Please specify tl prefix [optional]
53 ;;(setq TL_PREFIX "tl")
54 (setq TL_PREFIX
55       (if (string-match "XEmacs" emacs-version)
56           "tl"
57         ""))
58
59 ;; Please specify MEL prefix [optional]
60 (setq MEL_PREFIX "mel")
61
62 ;; Please specify tm prefix [optional]
63 (setq TM_PREFIX "tm")
64
65 ;; lisp files of tm are installed into following directory tree:
66 ;;
67 ;;      LISPDIR = PREFIX/DATA_PREFIX/LISP_PREFIX/
68 ;;      LISPDIR/mime-setup.{el|elc}
69 ;;      LISPDIR/TM_PACKAGE_PREFIX/TL_PREFIX/  --- tl  lisp files
70 ;;      LISPDIR/TM_PACKAGE_PREFIX/MEL_PREFIX/ --- MEL lisp files
71 ;;      LISPDIR/TM_PACKAGE_PREFIX/TM_PREFIX/  --- tm  lisp files
72 ;;
73 ;; For example, if PREFIX = "/usr/local/" and you use Emacs 19.30,
74 ;;
75 ;;      LISPDIR = /usr/local/share/emacs/site-lisp/
76 ;;      /usr/local/share/emacs/site-lisp/mime-setup.{el|elc}
77 ;;      /usr/local/share/emacs/site-lisp/     --- tl  lisp files
78 ;;      /usr/local/share/emacs/site-lisp/mel/ --- MEL lisp files
79 ;;      /usr/local/share/emacs/site-lisp/tm/  --- tm  lisp files
80 ;;
81 ;; For example, if PREFIX = "~/" and you use XEmacs,
82 ;;
83 ;;      LISPDIR = ~/share/xemacs/site-lisp/
84 ;;      ~/share/xemacs/site-lisp/mime-setup.{el|elc}
85 ;;      ~/share/xemacs/site-lisp/tl/  --- tl  lisp files
86 ;;      ~/share/xemacs/site-lisp/mel/ --- MEL lisp files
87 ;;      ~/share/xemacs/site-lisp/tm/  --- tm  lisp files
88
89
90 ;;; @ executables
91 ;;;
92
93 ;; Please specify binary path.
94 (defvar BIN_DIR (expand-file-name "bin" PREFIX))
95
96 ;; Please specify binary path. (for external method scripts)
97 (setq METHOD_DIR (expand-file-name "share/tm" PREFIX))
98
99
100 \f
101
102 ;;; @ optional settings
103 ;;;
104
105 (setq EMACS_PREFIX
106       (cond ((boundp 'NEMACS) "nemacs")
107             ((boundp 'MULE)   "mule")
108             ((string-match "XEmacs" emacs-version) "xemacs")
109             (t "emacs")
110             ))
111
112 (setq DATA_PREFIX
113       (if (or (< emacs-major-version 19)
114               (< emacs-minor-version 29)
115               )
116           "lib"
117         "share"))
118
119 (setq DATADIR (expand-file-name DATA_PREFIX PREFIX))
120
121 (setq LISP_PREFIX
122       (if (>= emacs-major-version 19)
123           "site-lisp"
124         "local.lisp"))
125
126 (setq EMACS_DATADIR (expand-file-name EMACS_PREFIX DATADIR))
127
128 (defvar LISPDIR (expand-file-name LISP_PREFIX EMACS_DATADIR))
129
130
131 ;; Please specify mime-setup.{el|elc} install path.
132 (setq SETUP_FILE_DIR LISPDIR)
133
134
135 (setq TM_LISPDIR (expand-file-name TM_PACKAGE_PREFIX LISPDIR))
136
137 (setq TL_DIR (expand-file-name TL_PREFIX TM_LISPDIR))
138 (setq MEL_DIR (expand-file-name MEL_PREFIX TM_LISPDIR))
139 (setq TM_KERNEL_DIR (expand-file-name TM_PREFIX TM_LISPDIR))
140 (setq TM_MHE_DIR TM_KERNEL_DIR)
141 (setq TM_GNUS_DIR TM_KERNEL_DIR)
142
143 (setq TM_GNUS_INSTALL_FORMAT
144       "cd gnus; PWD=`pwd` make install-19 EMACS=%s TMDIR19=%s")
145 (setq TM_GNUS_COMPILE ".gnus-compile")
146 (setq MAKE "make")
147
148 (setq el-file-mode (+ (* 64 6)(* 8 4) 4))
149
150
151 (setq BIN_SRC_DIR "src")
152 (setq BINS '("src/ol2" "src/decode-b"))
153 (setq METHOD_SRC_DIR "methods")
154 (setq METHODS
155       '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg" "tm-plain"
156         "tmdecode"))