3 ;;; $Id: mk-tgnus,v 1.1 1995/11/18 08:07:24 morioka Exp morioka $
10 (expand-file-name path (getenv "PWD"))
12 '("." ".." "../../tl/" "../../mel/"))
17 (defun compile-tm-gnus ()
22 (princ (format "%s\n" gnus-version))
23 (cond ((boundp 'gnus-original-article-buffer)
25 (byte-compile-file "tm-sgnus.el")
27 ((string-match "Gnus v5\\|September Gnus" gnus-version)
29 (byte-compile-file "tm-gnus4.el")
30 (byte-compile-file "tm-gd5.el")
32 ((string-match "GNUS 4" gnus-version)
34 (byte-compile-file "tm-gnus4.el")
36 ((string-match "GNUS 3" gnus-version)
38 (byte-compile-file "tm-gnus3.el")
40 ;;(byte-compile-file "tm-gnus.el")
43 (defconst el-file-mode (+ (* 64 6)(* 8 4) 4))
45 (defun install-el (path file)
46 (let ((full-path (expand-file-name file path)))
47 (if (file-exists-p full-path)
48 (set-file-modes full-path el-file-mode)
50 (copy-file file full-path t t)
51 (princ (format "%s -> %s\n" file path))
54 (defun install-el-files (path &rest files)
55 (mapcar (function (lambda (file)
56 (if (file-exists-p file)
57 (install-el path file)
61 (defun install-elc (path file)
62 (let ((full-path (expand-file-name file path)))
63 (copy-file file full-path t t)
65 (princ (format "%s -> %s\n" file path))
68 (defun install-elc-files (path &rest files)
69 (mapcar (function (lambda (file)
70 (if (file-exists-p file)
71 (install-elc path file)
75 (defun install-tm-gnus ()
76 (let ((path (car command-line-args-left)))
77 (princ (format "%s\n" emacs-version))
78 (if (not (file-exists-p path))
79 (make-directory path t)
81 (cond ((< (string-to-int emacs-version) 19)
82 (install-el-files path
84 "tm-gnus3.el" "tm-gnus4.el"
86 (install-elc-files path
88 "tm-gnus3.elc" "tm-gnus4.elc")
90 ((<= emacs-minor-version 29)
91 (install-el-files path
93 "tm-sgnus.el" "tm-gnus4.el"
94 "tm-gd5.el" "tm-gd3.el")
95 (install-elc-files path
97 "tm-sgnus.elc" "tm-gnus4.elc"
101 (install-el-files path
103 "tm-sgnus.el" "tm-gnus4.el"
105 (install-elc-files path
107 "tm-sgnus.elc" "tm-gnus4.elc"