3 ;; APEL-MK: installer for APEL.
9 (and (setq prefix (car command-line-args-left))
10 (or (string-equal "NONE" prefix)
11 (defvar PREFIX prefix)
13 (setq command-line-args-left (cdr command-line-args-left))
14 (and (setq lisp-dir (car command-line-args-left))
15 (or (string-equal "NONE" lisp-dir)
16 (defvar LISPDIR lisp-dir)
18 (setq command-line-args-left (cdr command-line-args-left))
19 (load-file "APEL-CFG")
20 (or (boundp 'apel-modules)
21 (load-file "APEL-ELS")
23 (princ (format "PREFIX=%s\n" PREFIX))
26 (defun compile-apel ()
29 (load-file "APEL-ELS")
30 (compile-elisp-modules emu-modules ".")
31 (compile-elisp-modules apel-modules ".")
34 (defun install-apel ()
36 (install-elisp-modules emu-modules "." EMU_DIR)
37 (install-elisp-modules apel-modules "." APEL_DIR)
40 (defun config-apel-package ()
42 (and (setq package-dir (car command-line-args-left))
43 (or (string= "NONE" package-dir)
44 (defvar PACKAGEDIR package-dir)
46 (setq command-line-args-left (cdr command-line-args-left))
47 (load-file "APEL-CFG")
48 (load-file "APEL-ELS")
50 (princ (format "PACKAGEDIR=%s\n" PACKAGEDIR))
53 (defun install-apel-package ()
57 (compile-elisp-modules emu-modules ".")
58 (compile-elisp-modules apel-modules ".")
60 (let ((dir (expand-file-name APEL_PREFIX
61 (expand-file-name "lisp"
63 (install-elisp-modules emu-modules "." dir)
64 (install-elisp-modules apel-modules "." dir)
66 (setq autoload-package-name "apel")
67 (add-to-list 'command-line-args-left dir)
68 (batch-update-directory)
70 (add-to-list 'command-line-args-left dir)
71 (Custom-make-dependencies)
73 (byte-compile-file (expand-file-name "auto-autoloads.el" dir))
74 (byte-compile-file (expand-file-name "custom-load.el" dir))