From bd461642ec4b15ae2530473aa0ffb3950cb328ab Mon Sep 17 00:00:00 2001 From: tomo Date: Wed, 17 Apr 2002 10:12:09 +0000 Subject: [PATCH] New files. --- IDS-CFG | 40 ++++++++++++++++++++++++++++++++++++++++ IDS-ELS | 15 +++++++++++++++ IDS-MK | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ Makefile | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 165 insertions(+) create mode 100644 IDS-CFG create mode 100644 IDS-ELS create mode 100644 IDS-MK create mode 100644 Makefile diff --git a/IDS-CFG b/IDS-CFG new file mode 100644 index 0000000..788cbbe --- /dev/null +++ b/IDS-CFG @@ -0,0 +1,40 @@ +;;; -*-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") + + + + +;;; @ 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 diff --git a/IDS-ELS b/IDS-ELS new file mode 100644 index 0000000..770f94c --- /dev/null +++ b/IDS-ELS @@ -0,0 +1,15 @@ +;;; -*-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 diff --git a/IDS-MK b/IDS-MK new file mode 100644 index 0000000..d7aa49d --- /dev/null +++ b/IDS-MK @@ -0,0 +1,49 @@ +;;; -*-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 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..301b96e --- /dev/null +++ b/Makefile @@ -0,0 +1,61 @@ +# +# 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) -- 1.7.10.4