--- /dev/null
+;;; -*-Emacs-Lisp-*-
+
+;; IDS-CFG: installation setting about IDS.
+
+;;; Code:
+
+(add-to-list 'load-path (expand-file-name "."))
+
+(condition-case nil
+ (require 'install)
+ (error (error "Please install APEL.")))
+
+
+;;; @ Please specify prefix of install directory.
+;;;
+
+;; Please specify IDS prefix [optional]
+(setq IDS_PREFIX "ids")
+
+
+\f
+
+;;; @ optional settings
+;;;
+
+(defvar PACKAGEDIR
+ (if (boundp 'early-packages)
+ (let ((dirs (append (if early-package-load-path
+ early-packages)
+ (if late-package-load-path
+ late-packages)
+ (if last-package-load-path
+ last-packages)))
+ dir)
+ (while (not (file-exists-p
+ (setq dir (car dirs))))
+ (setq dirs (cdr dirs)))
+ dir)))
+
+;;; IDS-CFG ends here
--- /dev/null
+;;; -*-Emacs-Lisp-*-
+
+;; IDS-ELS: list of IDS modules to install
+
+;;; Code:
+
+(setq ids-modules-to-compile
+ '(ids ids-util iddef))
+
+(setq ids-modules-not-to-compile nil)
+
+(setq ids-modules (append ids-modules-to-compile
+ ids-modules-not-to-compile))
+
+;;; IDS-ELS ends here
--- /dev/null
+;;; -*-Emacs-Lisp-*-
+
+;; IDS-MK: installer for IDS.
+
+;;; Code:
+
+(defun config-ids-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 "IDS-CFG")
+ (load-file "IDS-ELS")
+
+ (princ (format "PACKAGEDIR=%s\n" PACKAGEDIR))
+ ))
+
+(defun compile-ids-package ()
+ (config-ids-package)
+
+ (setq autoload-package-name "ids")
+ (add-to-list 'command-line-args-left ".")
+ (batch-update-directory)
+
+ (add-to-list 'command-line-args-left ".")
+ (Custom-make-dependencies)
+
+ (compile-elisp-modules (append ids-modules-to-compile
+ '(auto-autoloads custom-load))
+ ".")
+ )
+
+(defun install-ids-package ()
+ (config-ids-package)
+ (install-elisp-modules (append ids-modules
+ '(auto-autoloads
+ ;; custom-load
+ ))
+ "./"
+ (expand-file-name IDS_PREFIX
+ (expand-file-name "lisp"
+ PACKAGEDIR)))
+ (delete-file "./auto-autoloads.el")
+ ;; (delete-file "./custom-load.el")
+ )
+
+;;; IDS-MK ends here
--- /dev/null
+#
+# Makefile for IDS.
+#
+
+PACKAGE = ids
+VERSION = 0.1
+
+TAR = tar
+RM = /bin/rm -f
+CP = /bin/cp -p
+
+EMACS = emacs
+XEMACS = xemacs
+FLAGS = -batch -q -no-site-file -l IDS-MK
+
+PREFIX = NONE
+LISPDIR = NONE
+PACKAGEDIR = NONE
+VERSION_SPECIFIC_LISPDIR = NONE
+
+GOMI = *.elc
+
+ARC_DIR = /home/tomo/public_html/comp/emacsen/lisp/ids/ids-$(API)-for-flim-$(FLIM_API)
+
+
+elc: package
+
+install-elc: install-package
+
+install: install-elc
+
+
+package:
+ $(XEMACS) $(FLAGS) -f compile-ids-package $(PACKAGEDIR)
+
+install-package: package
+ $(XEMACS) $(FLAGS) -f install-ids-package $(PACKAGEDIR)
+
+
+clean:
+ -$(RM) $(GOMI)
+
+
+tar:
+ cvs commit
+ sh -c 'cvs tag -R $(PACKAGE)-`echo $(VERSION) | tr . _`; \
+ cd /tmp; \
+ cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/root \
+ export -d $(PACKAGE)-$(VERSION) \
+ -r $(PACKAGE)-`echo $(VERSION) | tr . _` \
+ ids'
+ $(RM) /tmp/$(PACKAGE)-$(VERSION)/ftp.in
+ cd /tmp; $(TAR) cvzf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
+ cd /tmp; $(RM) -r $(PACKAGE)-$(VERSION)
+ sed "s/VERSION/$(VERSION)/" < ftp.in | sed "s/API/$(API)/" \
+ | sed "s/PACKAGE/$(PACKAGE)/" \
+ | sed "s/FLIM_API/$(FLIM_API)/" > ftp
+
+release:
+ -$(RM) $(ARC_DIR)/$(PACKAGE)-$(VERSION).tar.gz
+ mv /tmp/$(PACKAGE)-$(VERSION).tar.gz $(ARC_DIR)