5 (cons (if (featurep 'xemacs)
16 ;; riece-identity -+-> riece-channel
26 ;; riece-channel -+-> riece-naming
31 ;; riece-filter calls riece-{handle,000,200,300,400,500}
43 (defun riece-compile-modules (modules)
44 (let ((load-path (cons nil load-path)))
46 (let ((source (expand-file-name
47 (concat (symbol-name (car modules)) ".el"))))
48 (if (file-newer-than-file-p source (concat source "c"))
49 (byte-compile-file source)))
50 (setq modules (cdr modules)))))
52 (defun riece-install-modules (modules dest just-print)
53 (unless (or just-print (file-exists-p dest))
54 (make-directory dest t))
56 (let ((name (symbol-name (car modules))))
57 (princ (format "%s.el -> %s\n" name dest))
59 (copy-file (expand-file-name (concat name ".el"))
60 (expand-file-name (concat name ".el") dest)
62 (princ (format "%s.elc -> %s\n" name dest))
64 (copy-file (expand-file-name (concat name ".elc"))
65 (expand-file-name (concat name ".elc") dest)
67 (setq modules (cdr modules))))
69 (defun riece-install-just-print-p ()
70 (let ((flag (getenv "MAKEFLAGS"))
73 (string-match "^\\(\\(--[^ ]+ \\)+-\\|[^ =-]\\)*n" flag))))
75 (defun riece-compile ()
76 (riece-compile-modules riece-modules))
78 (defun riece-install ()
79 (riece-install-modules
81 (expand-file-name "riece" (car command-line-args-left))
82 (riece-install-just-print-p)))
84 (defun riece-compile-package ()
85 (setq autoload-package-name "riece")
86 (add-to-list 'command-line-args-left ".")
87 (batch-update-directory)
88 (add-to-list 'command-line-args-left ".")
89 (Custom-make-dependencies)
90 (riece-compile-modules
92 '(auto-autoloads custom-load))))
94 (defun riece-install-package ()
95 (riece-install-modules
97 '(auto-autoloads custom-load))
98 (expand-file-name "riece"
99 (expand-file-name "lisp" (car command-line-args-left)))
100 (riece-install-just-print-p)))