From 4f129c785f0e9a5ccf8657aa0f340fb2d2ebb243 Mon Sep 17 00:00:00 2001 From: morioka Date: Thu, 17 Sep 1998 16:20:10 +0000 Subject: [PATCH] (config-emh-package): New function. (compile-emh-package): New function. (install-emh-package): New function. --- EMH-MK | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) 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 -- 1.7.10.4