From: morioka Date: Sun, 13 Sep 1998 05:54:46 +0000 (+0000) Subject: (config-apel-package): New function. X-Git-Tag: apel-8_18~17 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=d680a00cc6c4458a754857405327b722e89854d7;p=elisp%2Fapel.git (config-apel-package): New function. (compile-apel-package): New function. (install-apel-package): New function. --- diff --git a/APEL-MK b/APEL-MK index 5b662c0..9543ffd 100644 --- a/APEL-MK +++ b/APEL-MK @@ -1,7 +1,8 @@ ;;; -*-Emacs-Lisp-*- -;;; -;;; $Id: APEL-MK,v 0.5 1997-11-05 15:23:35 morioka Exp $ -;;; + +;; APEL-MK: installer for APEL. + +;;; Code: (defun config-apel () (let (prefix lisp-dir) @@ -40,4 +41,47 @@ (install-elisp-modules apel-modules "." APEL_DIR) ) +(defun config-apel-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 "APEL-CFG") + (load-file "APEL-ELS") + + (princ (format "PACKAGEDIR=%s\n" PACKAGEDIR)) + )) + +(defun compile-apel-package () + (config-apel-package) + (load "EMU-ELS") + (load-file "APEL-ELS") + + (setq autoload-package-name "apel") + (add-to-list 'command-line-args-left ".") + (batch-update-directory) + + (add-to-list 'command-line-args-left ".") + (Custom-make-dependencies) + + (compile-elisp-modules emu-modules ".") + (compile-elisp-modules (append apel-modules + '(auto-autoloads custom-load)) + ".") + ) + +(defun install-apel-package () + (config-apel-package) + (load "EMU-ELS") + (install-elisp-modules (append emu-modules + apel-modules + '(mime auto-autoloads custom-load)) + "./" + (expand-file-name APEL_PREFIX + (expand-file-name "lisp" + PACKAGEDIR))) + ) + ;;; APEL-MK ends here