;;; -*-Emacs-Lisp-*- ;; APEL-MK: installer for APEL. ;;; Code: (defun config-apel () (let (prefix lisp-dir) (and (setq prefix (car command-line-args-left)) (or (string-equal "NONE" prefix) (defvar PREFIX prefix) )) (setq command-line-args-left (cdr command-line-args-left)) (and (setq lisp-dir (car command-line-args-left)) (or (string-equal "NONE" lisp-dir) (defvar LISPDIR lisp-dir) )) (setq command-line-args-left (cdr command-line-args-left)) (load-file "APEL-CFG") (or (boundp 'apel-modules) (load-file "APEL-ELS") ) (princ (format "PREFIX=%s\n" PREFIX)) )) (defun compile-apel () (config-apel) (load "EMU-ELS") (load-file "APEL-ELS") (compile-elisp-modules emu-modules ".") (compile-elisp-modules apel-modules ".") ) (defun install-apel () (compile-apel) (install-elisp-modules emu-modules "." EMU_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 install-apel-package () (config-apel-package) (load "EMU-ELS") (compile-elisp-modules emu-modules ".") (compile-elisp-modules apel-modules ".") (let ((dir (expand-file-name APEL_PREFIX (expand-file-name "lisp" PACKAGEDIR)))) (install-elisp-modules emu-modules "." dir) (install-elisp-modules apel-modules "." dir) (setq autoload-package-name "apel") (add-to-list 'command-line-args-left dir) (batch-update-directory) (add-to-list 'command-line-args-left dir) (Custom-make-dependencies) (byte-compile-file (expand-file-name "auto-autoloads.el" dir)) (byte-compile-file (expand-file-name "custom-load.el" dir)) )) ;;; APEL-MK ends here