3 ;;; $Id: mk-tgnus,v 1.1 1995/11/18 08:07:24 morioka Exp morioka $
8 (defun compile-tm-gnus ()
14 (princ (format "%s\n" gnus-version))
15 (cond ((boundp 'gnus-original-article-buffer)
16 (byte-compile-file "tm-sgnus.el")
18 ((string-match "Gnus v5\\|September Gnus" gnus-version)
19 (byte-compile-file "tm-gnus4.el")
20 (byte-compile-file "tm-gd5.el")
22 ((string-match "GNUS 4" gnus-version)
23 (byte-compile-file "tm-gnus4.el")
25 ((string-match "GNUS 3" gnus-version)
26 (byte-compile-file "tm-gnus3.el")
28 (byte-compile-file "tm-gnus.el")
31 (defconst el-file-mode (+ (* 64 6)(* 8 4) 4))
33 (defun install-el (path file)
34 (let ((full-path (expand-file-name file path)))
35 (if (file-exists-p full-path)
36 (set-file-modes full-path el-file-mode)
38 (copy-file file full-path t t)
39 (princ (format "%s -> %s\n" file path))
42 (defun install-el-files (path &rest files)
43 (mapcar (function (lambda (file)
44 (if (file-exists-p file)
45 (install-el path file)
49 (defun install-elc (path file)
50 (let ((full-path (expand-file-name file path)))
51 (copy-file file full-path t t)
53 (princ (format "%s -> %s\n" file path))
56 (defun install-elc-files (path &rest files)
57 (mapcar (function (lambda (file)
58 (if (file-exists-p file)
59 (install-elc path file)
63 (defun install-tm-gnus ()
64 (let ((path (car command-line-args-left)))
65 (princ (format "%s\n" emacs-version))
66 (if (not (file-exists-p path))
67 (make-directory path t)
69 (if (< (string-to-int emacs-version) 19)
71 (install-el-files path
72 "tm-gnus.el" "tm-gd3.el"
73 "tm-gnus3.el" "tm-gnus4.el")
74 (install-elc-files path
76 "tm-gnus3.elc" "tm-gnus4.elc")
79 (install-el-files path
80 "tm-gnus.el" "tm-sgnus.el"
81 "tm-gd5.el" "tm-gd3.el"
83 (install-elc-files path
84 "tm-gnus.elc" "tm-sgnus.elc"