X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=SEMI-CFG;h=7485f10ef3b83350dd54dc28ab0ee545e4241b83;hb=99607dd1ab66601d60b8b40d7aec02b3773a57b8;hp=cda0c6e1efd5fc0d9c84e32515c7dbbe5dc1c5fc;hpb=874be6ee6b4325d50d402dbfac791c109a8e65f0;p=elisp%2Fsemi.git diff --git a/SEMI-CFG b/SEMI-CFG index cda0c6e..7485f10 100644 --- a/SEMI-CFG +++ b/SEMI-CFG @@ -1,36 +1,44 @@ ;;; -*-Emacs-Lisp-*- -;;; -;;; $Id: SEMI-CFG,v 0.7 1997-05-13 14:32:15 morioka Exp $ -;;; + +;; SEMI-CFG: installation setting about SEMI. + +;;; Code: (defvar default-load-path load-path) -;; (setq load-path (append -;; (mapcar (function -;; (lambda (path) -;; (expand-file-name path default-directory) -;; )) -;; '("." "../emu" "../apel" "../bitmap-mule" -;; "../mu" "../mel") -;; ) -;; load-path)) (add-to-list 'load-path (expand-file-name "../../site-lisp/apel" data-directory)) +(add-to-list 'load-path + (expand-file-name "." data-directory)) + +(if (boundp 'LISPDIR) + (progn + (add-to-list 'default-load-path LISPDIR) + (add-to-list 'load-path LISPDIR) + (add-to-list 'load-path (expand-file-name "apel" LISPDIR)) + )) -(when (boundp 'LISPDIR) - (add-to-list 'default-load-path LISPDIR) - (add-to-list 'load-path LISPDIR) - (add-to-list 'load-path (expand-file-name "apel" LISPDIR)) - ) +(defvar VERSION_SPECIFIC_LISPDIR nil) -(require 'install) -(require 'cl) +(if VERSION_SPECIFIC_LISPDIR + (add-to-list 'load-path VERSION_SPECIFIC_LISPDIR)) + +(condition-case nil + (require 'install) + (error (error "Please install APEL 8.7 or later."))) (add-path "bitmap-mule") -(add-path "mel") +(add-path "flim") (add-to-list 'load-path (expand-file-name ".")) +(or (module-installed-p 'calist) + (error "Please install APEL 8.7 or later.")) +(or (module-installed-p 'mime) + (error "Please install FLIM 1.6.0 or later.")) +(if (module-installed-p 'tm-view) + (message "Please remove tm from load-path.")) + ;;; @ Please specify optional package directory if you use them. ;;; @@ -70,24 +78,35 @@ (let ((path (get-latest-path "bbdb" 'all-paths))) (if path - (add-path path) - )) + (progn + (add-path path) + (add-path (expand-file-name "lisp" path)) ; run-in-place installation + ))) ;; Or please specify path. ;; (add-path "bbdb-1.50" 'all-paths) -;;; @ shell +;;; +;;; @@ Please specify Emacs/W3 path. ;;; -;; Please specify shell command path. -(setq SHELL - (find-if (function file-exists-p) - '("/bin/sh" "/usr/bin/sh") - )) +(let ((path (get-latest-path "w3" 'all-paths))) + (if path + (progn + (add-path path) + (add-path (expand-file-name "lisp" path)) ; run-in-place installation + ))) + +;; Or please specify path. +;; (add-path "w3-4.0pre.20" 'all-paths) -;; Please specify shell command option. -(setq SHELLOPTION "-c") + +;;; +;;; @@ Please specify CUSTOM path. +;;; + +(add-latest-path "custom") ;;; @ Please specify prefix of install directory. @@ -98,13 +117,6 @@ (defvar PREFIX install-prefix) ;;(setq PREFIX "~/") -;; Please specify install path prefix for binaries. -(defvar EXEC_PREFIX - (if (or running-emacs-18 running-xemacs) - (expand-file-name "../../.." exec-directory) - (expand-file-name "../../../.." exec-directory) - )) - ;; Please specify emu prefix [optional] (setq EMU_PREFIX (if (string-match "XEmacs" emacs-version) @@ -118,9 +130,6 @@ ;;; @ executables ;;; -;; Please specify binary path. -(defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX)) - ;; Please specify binary path. (for external method scripts) (setq METHOD_DIR (expand-file-name "share/semi" PREFIX)) @@ -144,4 +153,18 @@ "tm-plain" "tm-ps" "tmdecode")) +(defvar PACKAGEDIR + (if (boundp 'early-packages) + (let ((dirs (append (if early-package-load-path + early-packages) + (if late-package-load-path + late-packages) + (if last-package-load-path + last-packages))) + dir) + (while (not (file-exists-p + (setq dir (car dirs)))) + (setq dirs (cdr dirs))) + dir))) + ;;; SEMI-CFG ends here