X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=SEMI-MK;h=2aed7f113f578644dbf534493614ba07e551c538;hb=refs%2Fheads%2Femy-1_13;hp=296aa5ff872964d9ea3ca43598bf8ee0a55838bf;hpb=84a55b60f4320370bde1a2f45c8a08373728e1d6;p=elisp%2Fsemi.git diff --git a/SEMI-MK b/SEMI-MK index 296aa5f..2aed7f1 100644 --- a/SEMI-MK +++ b/SEMI-MK @@ -1,30 +1,34 @@ ;;; -*-Emacs-Lisp-*- -;;; -;;; $Id: SEMI-MK,v 0.2 1997-03-03 18:51:41 morioka Exp $ -;;; + +;; SEMI-MK: installer for SEMI. + +;;; Code: (defun config-semi () - (let (prefix exec-prefix) - (setq prefix (car command-line-args-left)) - (and prefix - (not (string-equal "NONE" prefix)) - (progn - (defvar PREFIX prefix) - (setq command-line-args-left (cdr command-line-args-left)) - ) - (setq exec-prefix (car command-line-args-left)) - (progn - (defvar EXEC_PREFIX exec-prefix) - ;;(setq command-line-args-left (cdr command-line-args-left)) - ))) + (let (prefix exec-prefix lisp-dir version-specific-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)) + (and (setq version-specific-lisp-dir (car command-line-args-left)) + (or (string-equal "NONE" version-specific-lisp-dir) + (progn + (defvar VERSION_SPECIFIC_LISPDIR version-specific-lisp-dir) + (princ (format "VERSION_SPECIFIC_LISPDIR=%s\n" + VERSION_SPECIFIC_LISPDIR))) + )) + (setq command-line-args-left (cdr command-line-args-left)) + ) (load-file "SEMI-CFG") - (load-file "../emu/EMU-ELS") - (load-file "../apel/APEL-ELS") - (load-file "../bitmap-mule/BITMAP-ELS") - (load-file "../mu/MU-ELS") - (load-file "../mel/MEL-ELS") (load-file "SEMI-ELS") - (princ (format "PREFIX=%s\tEXEC_PREFIX=%s\n" PREFIX EXEC_PREFIX)) + (princ (format "PREFIX=%s +LISPDIR=%s\n" PREFIX LISPDIR)) ) (defun directory= (dir1 dir2) @@ -34,11 +38,6 @@ (defun compile-semi () (config-semi) (print load-path) - (compile-elisp-modules emu-modules "../emu") - (compile-elisp-modules apel-modules "../apel") - (compile-elisp-modules bitmap-modules "../bitmap-mule") - (compile-elisp-modules mu-modules-to-compile "../mu") - (compile-elisp-modules mel-modules "../mel") (compile-elisp-modules semi-modules-to-compile ".") (compile-elisp-module 'mime-setup ".") ) @@ -46,12 +45,7 @@ (defun install-semi () (config-semi) (princ (format "%s\n" emacs-version)) - (install-elisp-modules emu-modules "../emu" EMU_DIR) - (install-elisp-modules apel-modules "../apel" APEL_DIR) - (install-elisp-modules bitmap-modules "../bitmap-mule" BITMAP_DIR) - (install-elisp-modules mu-modules "../mu" MU_DIR) - (install-elisp-modules mel-modules "../mel" MEL_DIR) - (install-elisp-modules semi-modules "." SEMI_KERNEL_DIR) + (install-elisp-modules semi-modules "." SEMI_KERNEL_DIR) (install-elisp-modules '(mime-setup) "." SETUP_FILE_DIR) ) @@ -60,4 +54,44 @@ (install-files METHODS METHOD_SRC_DIR METHOD_DIR nil t) ) +(defun config-semi-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 "SEMI-CFG") + (load-file "SEMI-ELS") + + (princ (format "PACKAGEDIR=%s\n" PACKAGEDIR)) + )) + +(defun compile-semi-package () + (config-semi-package) + + (setq autoload-package-name "semi") + (add-to-list 'command-line-args-left ".") + (batch-update-directory) + + (add-to-list 'command-line-args-left ".") + (Custom-make-dependencies) + + (compile-elisp-modules (append semi-modules-to-compile + '(mime-setup auto-autoloads custom-load)) + ".") + ) + +(defun install-semi-package () + (config-semi-package) + (install-elisp-modules (append semi-modules + '(mime-setup auto-autoloads custom-load)) + "./" + (expand-file-name SEMI_PREFIX + (expand-file-name "lisp" + PACKAGEDIR))) + (delete-file "./auto-autoloads.el") + (delete-file "./custom-load.el") + ) + ;;; SEMI-MK ends here