From: morioka Date: Thu, 17 Sep 1998 16:20:10 +0000 (+0000) Subject: (config-emh-package): New function. X-Git-Tag: emh-1_8-199811302358~11 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f129c785f0e9a5ccf8657aa0f340fb2d2ebb243;p=elisp%2Femh.git (config-emh-package): New function. (compile-emh-package): New function. (install-emh-package): New function. --- diff --git a/EMH-MK b/EMH-MK index 0cc3f96..a0b39ae 100644 --- a/EMH-MK +++ b/EMH-MK @@ -1,7 +1,8 @@ ;;; -*-Emacs-Lisp-*- -;;; -;;; $Id: EMH-MK,v 0.1 1997-05-15 06:47:02 morioka Exp $ -;;; + +;; EMH-MK: installer for EMH. + +;;; Code: (defun config-emh () (let (prefix lisp-dir) @@ -30,4 +31,40 @@ LISPDIR=%s\n" PREFIX LISPDIR)) (install-elisp-modules emh-modules "./" EMH_DIR) ) +(defun config-emh-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 "EMH-CFG") + (load-file "EMH-ELS") + (setq emh-modules (append emh-modules + '(auto-autoloads custom-load))) + (princ (format "PACKAGEDIR=%s\n" PACKAGEDIR)) + )) + +(defun compile-emh-package () + (config-emh-package) + + (setq autoload-package-name "emh") + (add-to-list 'command-line-args-left ".") + (batch-update-directory) + + (add-to-list 'command-line-args-left ".") + (Custom-make-dependencies) + + (compile-elisp-modules emh-modules ".") + ) + +(defun install-emh-package () + (config-emh-package) + (install-elisp-modules emh-modules + "./" + (expand-file-name EMH_PREFIX + (expand-file-name "lisp" + PACKAGEDIR))) + ) + ;;; EMH-MK ends here