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")
26 (byte-compile-file "tm-gd5.el")
28 ((string-match "Gnus v5\\|September Gnus" gnus-version)
30 (byte-compile-file "tm-gnus4.el")
31 (byte-compile-file "tm-gd5.el")
33 ((string-match "GNUS 4" gnus-version)
35 (byte-compile-file "tm-gnus4.el")
37 ((string-match "GNUS 3" gnus-version)
39 (byte-compile-file "tm-gnus3.el")
41 ;;(byte-compile-file "tm-gnus.el")
44 (defconst el-file-mode (+ (* 64 6)(* 8 4) 4))
46 (defun install-el (path file)
47 (let ((full-path (expand-file-name file path)))
48 (if (file-exists-p full-path)
49 (set-file-modes full-path el-file-mode)
51 (copy-file file full-path t t)
52 (princ (format "%s -> %s\n" file path))
55 (defun install-el-files (path &rest files)
56 (mapcar (function (lambda (file)
57 (if (file-exists-p file)
58 (install-el path file)
62 (defun install-elc (path file)
63 (let ((full-path (expand-file-name file path)))
64 (copy-file file full-path t t)
66 (princ (format "%s -> %s\n" file path))
69 (defun install-elc-files (path &rest files)
70 (mapcar (function (lambda (file)
71 (if (file-exists-p file)
72 (install-elc path file)
76 (defun install-tm-gnus ()
77 (let ((path (car command-line-args-left)))
78 (princ (format "%s\n" emacs-version))
79 (if (not (file-exists-p path))
80 (make-directory path t)
82 (cond ((< (string-to-int emacs-version) 19)
83 (install-el-files path
85 "tm-gnus3.el" "tm-gnus4.el"
87 (install-elc-files path
89 "tm-gnus3.elc" "tm-gnus4.elc")
91 ((<= emacs-minor-version 29)
92 (install-el-files path
94 "tm-sgnus.el" "tm-gnus4.el"
95 "tm-gd5.el" "tm-gd3.el")
96 (install-elc-files path
98 "tm-sgnus.elc" "tm-gnus4.elc"
102 (install-el-files path
104 "tm-sgnus.el" "tm-gnus4.el"
106 (install-elc-files path
108 "tm-sgnus.elc" "tm-gnus4.elc"