(config-apel-package): New function.
authormorioka <morioka>
Sun, 13 Sep 1998 05:54:46 +0000 (05:54 +0000)
committermorioka <morioka>
Sun, 13 Sep 1998 05:54:46 +0000 (05:54 +0000)
(compile-apel-package): New function.
(install-apel-package): New function.

APEL-MK

diff --git a/APEL-MK b/APEL-MK
index 5b662c0..9543ffd 100644 (file)
--- 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)
   (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