X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=SEMI-CFG;h=aa74aa3e4e5aeded12c9ff0c25657641e9cb5024;hb=refs%2Fheads%2Femiko-1_14;hp=865154ce6a9277bc005695b394e97b28be87dbd4;hpb=ded9eec1562e662a3a8e0e5537baea671078f295;p=elisp%2Fsemi.git diff --git a/SEMI-CFG b/SEMI-CFG index 865154c..aa74aa3 100644 --- a/SEMI-CFG +++ b/SEMI-CFG @@ -1,7 +1,8 @@ ;;; -*-Emacs-Lisp-*- -;;; -;;; $Id: SEMI-CFG,v 1.6 1998-04-13 13:39:57 morioka Exp $ -;;; + +;; SEMI-CFG: installation setting about SEMI. + +;;; Code: (defvar default-load-path load-path) @@ -10,16 +11,21 @@ (add-to-list 'load-path (expand-file-name "." data-directory)) -(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)) - ) +(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)) + )) + +(defvar VERSION_SPECIFIC_LISPDIR nil) + +(if VERSION_SPECIFIC_LISPDIR + (add-to-list 'load-path VERSION_SPECIFIC_LISPDIR)) (condition-case nil (require 'install) - (error (error "Please install APEL."))) -(require 'cl) + (error (error "Please install APEL 8.7 or later."))) (add-path "bitmap-mule") (add-path "flim") @@ -27,11 +33,11 @@ (add-to-list 'load-path (expand-file-name ".")) (or (module-installed-p 'calist) - (error "Please install latest APEL.")) -(or (module-installed-p 'mel) - (error "Please install RIME.")) + (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) - (error "Please remove tm from load-path.")) + (message "Please remove tm from load-path.")) ;;; @ Please specify optional package directory if you use them. @@ -72,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. +;;; + +(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 path. -(setq SHELL - (find-if (function file-exists-p) - '("/bin/sh" "/usr/bin/sh") - )) -;; Please specify shell command option. -(setq SHELLOPTION "-c") +;;; +;;; @@ Please specify CUSTOM path. +;;; + +(add-latest-path "custom") ;;; @ Please specify prefix of install directory. @@ -100,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) @@ -120,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)) @@ -146,4 +153,6 @@ "tm-plain" "tm-ps" "tmdecode")) +(defvar PACKAGEDIR (install-get-default-package-directory)) + ;;; SEMI-CFG ends here