56143ac1cbebc3f20a0f3f11d1492e8eb887ae0b
[elisp/tm.git] / TM-CFG
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: TM-CFG,v 3.0 1996/03/27 19:38:12 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
48 ;; Please specify tm package prefix [optional]
49 (setq TM_PACKAGE_PREFIX "")
50
51 ;; Please specify tl prefix [optional]
52 ;;(setq TL_PREFIX "tl/")
53 (setq TL_PREFIX
54       (if (string-match "XEmacs" emacs-version)
55           "tl/"
56         ""))
57
58 ;; Please specify MEL prefix [optional]
59 (setq MEL_PREFIX "mel/")
60
61 ;; Please specify tm prefix [optional]
62 (setq TM_PREFIX "tm/")
63
64 ;; lisp files of tm are installed into following directory tree:
65 ;;
66 ;;      LISPDIR = PREFIX/DATA_PREFIX/LISP_PREFIX/
67 ;;      LISPDIR/mime-setup.{el|elc}
68 ;;      LISPDIR/TM_PACKAGE_PREFIX/TL_PREFIX/  --- tl  lisp files
69 ;;      LISPDIR/TM_PACKAGE_PREFIX/MEL_PREFIX/ --- MEL lisp files
70 ;;      LISPDIR/TM_PACKAGE_PREFIX/TM_PREFIX/  --- tm  lisp files
71 ;;
72 ;; For example, if PREFIX = "/usr/local/" and you use Emacs 19.30,
73 ;;
74 ;;      LISPDIR = /usr/local/share/emacs/site-lisp/
75 ;;      /usr/local/share/emacs/site-lisp/mime-setup.{el|elc}
76 ;;      /usr/local/share/emacs/site-lisp/     --- tl  lisp files
77 ;;      /usr/local/share/emacs/site-lisp/mel/ --- MEL lisp files
78 ;;      /usr/local/share/emacs/site-lisp/tm/  --- tm  lisp files
79 ;;
80 ;; For example, if PREFIX = "~/" and you use XEmacs,
81 ;;
82 ;;      LISPDIR = ~/share/xemacs/site-lisp/
83 ;;      ~/share/xemacs/site-lisp/mime-setup.{el|elc}
84 ;;      ~/share/xemacs/site-lisp/tl/  --- tl  lisp files
85 ;;      ~/share/xemacs/site-lisp/mel/ --- MEL lisp files
86 ;;      ~/share/xemacs/site-lisp/tm/  --- tm  lisp files
87
88
89 ;;; @ executables
90 ;;;
91
92 ;; Please specify binary path.
93 (defvar BIN_DIR (expand-file-name "bin/" PREFIX))
94
95 ;; Please specify binary path. (for external method scripts)
96 (setq METHOD_DIR BIN_DIR)
97
98
99 \f
100
101 ;;; @ optional settings
102 ;;;
103
104 (setq EMACS_PREFIX
105       (cond ((boundp 'NEMACS) "nemacs/")
106             ((boundp 'MULE)   "mule/")
107             ((string-match "XEmacs" emacs-version) "xemacs/")
108             (t "emacs/")
109             ))
110
111 (setq DATA_PREFIX
112       (if (or (< emacs-major-version 19)
113               (< emacs-minor-version 29)
114               )
115           "lib/"
116         "share/"))
117
118 (setq DATADIR (expand-file-name DATA_PREFIX PREFIX))
119
120 (setq LISP_PREFIX
121       (if (>= emacs-major-version 19)
122           "site-lisp/"
123         "local.lisp/"))
124
125 (setq EMACS_DATADIR (expand-file-name EMACS_PREFIX DATADIR))
126
127 (defvar LISPDIR (expand-file-name LISP_PREFIX EMACS_DATADIR))
128
129
130 ;; Please specify mime-setup.{el|elc} install path.
131 (setq SETUP_FILE_DIR LISPDIR)
132
133
134 (setq TM_LISPDIR (expand-file-name TM_PACKAGE_PREFIX LISPDIR))
135
136 (setq TL_DIR (expand-file-name TL_PREFIX TM_LISPDIR))
137 (setq MEL_DIR (expand-file-name MEL_PREFIX TM_LISPDIR))
138 (setq TM_KERNEL_DIR (expand-file-name TM_PREFIX TM_LISPDIR))
139 (setq TM_MHE_DIR TM_KERNEL_DIR)
140 (setq TM_GNUS_DIR TM_KERNEL_DIR)
141
142 (setq TM_GNUS_COMPILE_FORMAT "cd gnus; PWD=`pwd` make %s EMACS=%s")
143 (setq TM_GNUS_INSTALL_FORMAT "cd gnus; PWD=`pwd` make install-19 EMACS=%s TMDIR19=%s")
144
145 (setq el-file-mode (+ (* 64 6)(* 8 4) 4))
146
147
148 (setq BIN_SRC_DIR "src/")
149 (setq BINS '("src/ol2" "src/decode-b"))
150 (setq METHOD_SRC_DIR "methods/")
151 (setq METHODS
152       '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg" "tm-plain"
153         "tmdecode"))