Don't require tl-misc.
[elisp/semi.git] / SEMI-CFG
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: SEMI-CFG,v 0.1 1997-02-28 04:08:02 tmorioka Exp $
4 ;;;
5
6 (defvar default-load-path load-path)
7 (setq load-path (append
8                  (mapcar (function
9                           (lambda (path)
10                             (expand-file-name path default-directory)
11                             ))
12                          '("." "../emu" "../tl" "../bitmap-mule"
13                            "../mu" "../mel"
14                            "../emh" "../gnus-mime" "../rmail-mime")
15                          )
16                  load-path))
17
18 (require 'install)
19
20
21 ;;; @ Please specify optional package directory if you use them.
22 ;;;
23
24 ;; It is only necessary to use `add-path' if these packages are not
25 ;; already on the standard load-path of Emacs.
26
27 ;; Function `get-latest-path' detect latest version of such package
28 ;; under load-path directories. If you want to use a version of a
29 ;; package instead of latest version, please specify by argument of
30 ;; function `add-path'.
31
32 ;; Function `add-path' finds path under load-path directories. If a
33 ;; package does not exist in load-path, please specify by absolutely
34 ;; (`~/' is available), for example
35 ;;      (add-path "~/lib/elisp/mailcrypt-3.4")
36 ;; or
37 ;;      (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4")
38
39
40 ;;; @@ Please specify Mailcrypt path.
41 ;;;
42
43 ;; Use latest version installed in load-path.
44
45 (let ((path (get-latest-path "mailcrypt" 'all-paths)))
46   (if path
47       (add-path path)
48     ))
49
50 ;; Or please specify path.
51 ;; (add-path "mailcrypt-3.4" 'all-paths)
52
53
54 ;;; @@ Please specify BBDB path.
55 ;;;
56
57 (let ((path (get-latest-path "bbdb" 'all-paths)))
58   (if path
59       (add-path path)
60     ))
61
62 ;; Or please specify path.
63 ;; (add-path "bbdb-1.50" 'all-paths)
64
65
66 ;;; @ shell
67 ;;;
68
69 ;; Please specify shell command path.
70 (setq SHELL
71       (find-if (function file-exists-p)
72                '("/bin/sh" "/usr/bin/sh")
73                ))
74
75 ;; Please specify shell command option.
76 (setq SHELLOPTION "-c")
77
78
79 ;;; @ Please specify prefix of install directory.
80 ;;;
81
82 ;; Please specify install path prefix.
83 ;; If it is omitted, shared directory (maybe /usr/local is used).
84 (defvar PREFIX install-prefix)
85 ;;(setq PREFIX "~/")
86
87 ;; Please specify install path prefix for binaries.
88 (defvar EXEC_PREFIX
89   (if (or running-emacs-18 running-xemacs)
90       (expand-file-name "../../.." exec-directory)
91     (expand-file-name "../../../.." exec-directory)
92     ))
93
94 ;; Please specify prefix for ``bitmap-mule'' [optional]
95 (setq BITMAP_PREFIX "bitmap")
96
97 ;; Please specify MU prefix [optional]
98 (setq MU_PREFIX "mu")
99
100 ;; Please specify MEL prefix [optional]
101 (setq MEL_PREFIX "mel")
102
103 ;; Please specify SEMI prefix [optional]
104 (setq SEMI_PREFIX "semi")
105
106 ;; lisp files of SEMI are installed into following directory tree:
107 ;;
108 ;;      <LISPDIR> = <PREFIX>/DATA_PREFIX/<install-elisp-prefix>/
109 ;;      <LISPDIR>/mime-setup.{el|elc}
110 ;;      <LISPDIR>/<BITMAP_PREFIX>/      --- bitmap lisp files
111 ;;      <LISPDIR>/<MU_PREFIX>/          --- MU lisp files
112 ;;      <LISPDIR>/<MEL_PREFIX>/         --- MEL lisp files
113 ;;      <LISPDIR>/<SEMI_PREFIX>/        --- SEMI lisp files
114 ;;
115 ;; For example, if <PREFIX> = "/usr/local" and you use Emacs 19.34,
116 ;;
117 ;;      <LISPDIR> = /usr/local/share/emacs/site-lisp/
118 ;;      /usr/local/share/emacs/site-lisp/mime-setup.{el|elc}
119 ;;      /usr/local/share/emacs/site-lisp/       --- tl  lisp files
120 ;;      /usr/local/share/emacs/site-lisp/mu/    --- MU lisp files
121 ;;      /usr/local/share/emacs/site-lisp/mel/   --- MEL lisp files
122 ;;      /usr/local/share/emacs/site-lisp/semi/  --- SEMI lisp files
123 ;;
124 ;; For example, if <PREFIX> = "~/" and you use XEmacs,
125 ;;
126 ;;      <LISPDIR> = ~/share/xemacs/site-lisp/
127 ;;      ~/lib/xemacs/site-lisp/mime-setup.{el|elc}
128 ;;      ~/lib/xemacs/site-lisp/tl/  --- tl  lisp files
129 ;;      ~/lib/xemacs/site-lisp/mu/  --- MU  lisp files
130 ;;      ~/lib/xemacs/site-lisp/mel/ --- MEL lisp files
131 ;;      ~/lib/xemacs/site-lisp/semi/ --- SEMI lisp files
132
133
134 ;;; @ executables
135 ;;;
136
137 ;; Please specify binary path.
138 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
139
140 ;; Please specify binary path. (for external method scripts)
141 (setq METHOD_DIR (expand-file-name "share/semi" PREFIX))
142
143
144 \f
145
146 ;;; @ optional settings
147 ;;;
148
149 ;; It is generated by automatically. Please set variable `PREFIX'.
150 ;; If you don't like default directory tree, please set it.
151 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
152 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
153
154 (setq BITMAP_DIR        (expand-file-name BITMAP_PREFIX LISPDIR))
155 (setq MU_DIR            (expand-file-name MU_PREFIX     LISPDIR))
156 (setq MEL_DIR           (expand-file-name MEL_PREFIX    LISPDIR))
157 (setq SEMI_KERNEL_DIR   (expand-file-name SEMI_PREFIX   LISPDIR))
158 (setq SETUP_FILE_DIR    SEMI_KERNEL_DIR)
159 (setq EMH_DIR           SEMI_KERNEL_DIR)
160 (setq Gnus_MIME_DIR     SEMI_KERNEL_DIR)
161 (setq RMAIL_MIME_DIR    SEMI_KERNEL_DIR)
162 (setq SEMI_VM_DIR       SEMI_KERNEL_DIR)
163
164 (cond ((member LISPDIR default-load-path)
165        (setq BITMAP_RELATIVE_DIR        BITMAP_PREFIX)
166        (setq MU_RELATIVE_DIR            MU_PREFIX)
167        (setq MEL_RELATIVE_DIR           MEL_PREFIX)
168        (setq SEMI_KERNEL_RELATIVE_DIR   SEMI_PREFIX)
169        )
170       ((string-match (concat "^" (regexp-quote (expand-file-name "~/")))
171                      LISPDIR)
172        (setq BITMAP_RELATIVE_DIR
173              (concat "~/" (file-relative-name BITMAP_DIR "~/"))
174              )
175        (setq MU_RELATIVE_DIR
176              (concat "~/" (file-relative-name MU_DIR "~/"))
177              )
178        (setq MEL_RELATIVE_DIR
179              (concat "~/" (file-relative-name MEL_DIR "~/"))
180              )
181        (setq SEMI_KERNEL_RELATIVE_DIR
182              (concat "~/" (file-relative-name SEMI_KERNEL_DIR "~/"))
183              )
184        )
185       (t
186        (setq BITMAP_RELATIVE_DIR        BITMAP_DIR)
187        (setq MU_RELATIVE_DIR            MU_DIR)
188        (setq MEL_RELATIVE_DIR           MEL_DIR)
189        (setq SEMI_KERNEL_RELATIVE_DIR   SEMI_KERNEL_DIR)
190        ))
191 (setq EMH_RELATIVE_DIR          SEMI_KERNEL_RELATIVE_DIR)
192 (setq Gnus_MIME_RELATIVE_DIR    SEMI_KERNEL_RELATIVE_DIR)
193
194 (setq BIN_SRC_DIR "src")
195 (setq BINS '("ol2" "decode-b"))
196 (setq METHOD_SRC_DIR "methods")
197 (setq METHODS
198       '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
199         "tm-plain" "tm-ps"
200         "tmdecode"))
201
202 ;;; SEMI-CFG ends here