From: morioka Date: Fri, 11 Sep 1998 23:47:04 +0000 (+0000) Subject: (config-semi-package): New function. X-Git-Tag: semi-1_8_6~15 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a18aaafefd757e02abfa7c9872567c314a510e31;p=elisp%2Fsemi.git (config-semi-package): New function. (compile-semi-package): New function. (install-semi-package): New function. --- diff --git a/SEMI-MK b/SEMI-MK index 5abe824..11c8137 100644 --- a/SEMI-MK +++ b/SEMI-MK @@ -1,7 +1,7 @@ ;;; -*-Emacs-Lisp-*- -;;; -;;; $Id: SEMI-MK,v 1.2 1998-03-13 12:55:52 morioka Exp $ -;;; + +;; SEMI-MK: installer for SEMI. + ;;; Code: (defun config-semi () @@ -51,4 +51,42 @@ LISPDIR=%s\n" PREFIX EXEC_PREFIX LISPDIR)) (install-files METHODS METHOD_SRC_DIR METHOD_DIR nil t) ) +(defun config-semi-package () + (let (package-dir) + (and (setq package-dir (car command-line-args-left)) + (or (string= "NONE" package-dir) + (defvar PACKAGEDIR package-dir) + )) + (setq command-line-args-left (cdr command-line-args-left)) + (load-file "SEMI-CFG") + (load-file "SEMI-ELS") + + (princ (format "PACKAGEDIR=%s\n" PACKAGEDIR)) + )) + +(defun compile-semi-package () + (config-semi-package) + + (setq autoload-package-name "semi") + (add-to-list 'command-line-args-left ".") + (batch-update-directory) + + (add-to-list 'command-line-args-left ".") + (Custom-make-dependencies) + + (compile-elisp-modules (append semi-modules-to-compile + '(auto-autoloads custom-load)) + ".") + ) + +(defun install-semi-package () + (config-semi-package) + (install-elisp-modules (append semi-modules + '(mime auto-autoloads custom-load)) + "./" + (expand-file-name SEMI_PREFIX + (expand-file-name "lisp" + PACKAGEDIR))) + ) + ;;; SEMI-MK ends here