annotate lisp/utils/xemacs-build-report.el @ 205:92f8ad5d0d3f r20-4b1

Import from CVS: tag r20-4b1
author cvs
date Mon, 13 Aug 2007 10:02:46 +0200
parents 850242ba4a81
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
1 ;;; xemacs-build-report.el --- Automatically formatted build reports for XEmacs
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
2
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
3 ;; Copyright (C) 1997 Adrian Aichner
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
4
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
5 ;; Author: Adrian Aichner, Teradyne GmbH Munich <aichner@ecf.teradyne.com>
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
6 ;; Date: Sun., Apr. 20, 1997.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
7 ;; Version: 1.25
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
8 ;; Keywords: internal
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
9
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
10 ;; This file is part of XEmacs.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
11
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
12 ;; XEmacs is free software; you can redistribute it and/or modify
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
13 ;; it under the terms of the GNU General Public License as published by
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
14 ;; the Free Software Foundation; either version 2, or (at your option)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
15 ;; any later version.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
16
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
17 ;; XEmacs is distributed in the hope that it will be useful, but
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
20 ;; General Public License for more details.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
21
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
22 ;; You should have received a copy of the GNU General Public License
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
23 ;; along with XEmacs; see the file COPYING. If not, write to the Free
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
24 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
25 ;; 02111-1307, USA.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
26
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
27 ;;; Synched up with: Not synched.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
28
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
29 ;;; Commentary:
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
30
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
31 ;; The Idea:
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
32 ;; Let XEmacs report interesting aspects of how it was built.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
33
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
34 ;; The Concept:
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
35 ;; User creates an XEmacs Build Report by just calling
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
36 ;; M-x xemacs-create-build-report
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
37 ;; which will initialize a mail buffer with relevant information
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
38 ;; derived from the XEmacs build process. Point is left at the
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
39 ;; beginning of the report for user to input some personal notes and
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
40 ;; send the report.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
41
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
42 ;; The Status:
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
43 ;; This is the first `Proof of Concept'.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
44
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
45 ;; The Author:
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
46 ;; Adrian Aichner, Teradyne GmbH Munich, Sun., Apr. 20, 1997.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
47
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
48 ;;; Code:
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
49
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
50 (require 'config)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
51 (provide 'xemacs-build-report)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
52
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
53 ;; Building the version from the RCS Revision keyword was lifted from
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
54 ;; lisp/packages/auto-save.el.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
55 ;; This was later taken out due to recommandation by developers on
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
56 ;; xemacs-beta@xemacs.org. Release versions are to be checked out
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
57 ;; using `co -u -kv ...'.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
58 (defconst xemacs-build-report-version
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
59 "Revision: 1.25"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
60 "Version number of xemacs-build-report.")
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
61
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
62 (defgroup xemacs-build-report nil
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 197
diff changeset
63 "Package automating the process of sending XEmacs Build Reports.")
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
64
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
65 (defcustom xemacs-build-report-destination
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
66 "xemacs-beta@xemacs.org"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
67 "The mail address XEmacs Build Reports should go to."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
68 :group 'xemacs-build-report)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
69
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
70 (defcustom xemacs-build-report-keep-regexp
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
71 "make\\[\\|warn\\|pure.*\\(space\\|size\\)\\|hides\\|shadowings"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
72 "Regexp of make process output lines to keep in the report."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
73 :group 'xemacs-build-report)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
74
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
75 (defcustom xemacs-build-report-delete-regexp
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
76 "confl.*with.*auto-inlining"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
77 "Regexp of make process output lines to delete from the report."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
78 :group 'xemacs-build-report)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
79
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
80 (defcustom xemacs-build-report-make-output-file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
81 (concat (gethash 'blddir (config-value-hash-table)) "/mk.err")
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
82 "Filename where stdout and stderr of XEmacs make process have been stored.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
83 mk.err will not be created automatically. You'll have to run make with
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
84 output redirection. I use an alias
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
85 alias mk 'make \!* >>&\! \!$.err &'
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
86 for that, so that I get mk.err went I run mk."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
87 :group 'xemacs-build-report)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
88
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
89 (defcustom xemacs-build-report-installation-file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
90 (concat (gethash 'blddir (config-value-hash-table)) "/Installation")
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
91 "Installation file produced by XEmacs configure process."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
92 :group 'xemacs-build-report)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
93
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
94 (defcustom xemacs-build-report-subject
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
95 (concat "Build %s: " emacs-version " on " system-configuration)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
96 "XEmacs Build Report Subject Line. %s-sequences will be substituted
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
97 with user input through `xemacs-create-build-report' according to
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
98 `xemacs-build-report-prompts' using `format'."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
99 :group 'xemacs-build-report)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
100
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
101 (defcustom xemacs-build-report-prompts
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
102 '(("Status?: " "Success" "Failure"))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
103 "XEmacs Build Report Prompt(s). This is a list of prompt-string
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
104 lists used by `xemacs-create-build-report' in conjunction with
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
105 `xemacs-build-report-subject'. Each list consists of a prompt string
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
106 followed by any number of strings which can be chosen via the history
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
107 mechanism."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
108 :group 'xemacs-build-report)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
109
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
110 (defcustom xemacs-build-report-file-encoding
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
111 "7bit"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
112 "XEmacs Build Report File Encoding to be used when MIME support is
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
113 available."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
114 :group 'xemacs-build-report)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
115
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
116 ;; Symbol Name mappings from TM to SEMI serving as
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
117 ;; Compatibility Bandaid
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
118 ;; If 'mime-editor/version-name is bound, we must be using TM(-edit).
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
119 (if (boundp 'mime-editor/version-name)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
120 (progn
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
121 ;; No (defvaralias ...) so far. T
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
122 ;; Thanks to "Didier Verna" verna@inf.enst.fr for reporting my
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
123 ;; incorrect defvaraliasing of `mime-editor/insert-tag'.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
124 (defalias
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
125 'mime-edit-insert-tag
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
126 'mime-editor/insert-tag)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
127 (defalias
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
128 'mime-edit-insert-binary-file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
129 'mime-editor/insert-binary-file)))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
130
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
131 (defun xemacs-create-build-report (&rest args)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
132 "Initializes a fresh mail-mode buffer with the contents of XEmacs
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
133 Installation file and excerpts from XEmacs make output and errors and
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
134 leaves point at the beginning of the mail text. See also
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
135 `xemacs-build-report-destination',
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
136 `xemacs-build-report-keep-regexp',
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
137 `xemacs-build-report-delete-regexp',
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
138 `xemacs-build-report-make-output-file' and
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
139 `xemacs-build-report-installation-file'."
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
140 (interactive
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
141 (let (prompt
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
142 hist
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
143 arg
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
144 (prompts xemacs-build-report-prompts))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
145 (progn
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
146 (while prompts
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
147 (setq prompt (caar prompts))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
148 (setq hist (cdar prompts))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
149 (setq prompts (cdr prompts))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
150 (setq arg (cons (read-string prompt "" 'hist) arg)))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
151 arg)))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
152 (save-excursion
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
153 (mail
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
154 t
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
155 xemacs-build-report-destination
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
156 (apply 'format xemacs-build-report-subject args))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
157 (let ((report-begin (mail-text)))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
158 (if (file-exists-p xemacs-build-report-make-output-file)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
159 (progn
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
160 (if (featurep 'mime-setup)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
161 (progn
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
162 (setq xemacs-build-report-keep-regexp
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
163 (concat "^--\\[\\[\\|\\]\\]$\\|"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
164 xemacs-build-report-keep-regexp))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
165 (mime-edit-insert-tag
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
166 "application"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
167 "octet-stream"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
168 (concat
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
169 "\nContent-Disposition: attachment;"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
170 " filename=\""
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
171 (file-name-nondirectory
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
172 xemacs-build-report-make-output-file)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
173 "\""))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
174 (mime-edit-insert-binary-file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
175 xemacs-build-report-make-output-file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
176 xemacs-build-report-file-encoding))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
177 (insert-file-contents xemacs-build-report-make-output-file))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
178 (goto-char report-begin)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
179 (delete-non-matching-lines
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
180 xemacs-build-report-keep-regexp)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
181 (goto-char report-begin)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
182 (delete-matching-lines xemacs-build-report-delete-regexp)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
183 (goto-char report-begin)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
184 (insert "> Contents of "
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
185 xemacs-build-report-make-output-file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
186 "\n> keeping lines matching\n> \""
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
187 xemacs-build-report-keep-regexp
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
188 "\"\n> and then deleting lines matching\n> \""
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
189 xemacs-build-report-delete-regexp
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
190 "\"\n\n"))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
191 (insert "> " xemacs-build-report-make-output-file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
192 " does not exist!\n\n"))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
193 (goto-char report-begin)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
194 (insert "\n> XEmacs Build Report as generated\n> by "
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
195 "xemacs-build-report-version "
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
196 xemacs-build-report-version
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
197 " follows:\n\n")
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
198 (if (file-exists-p xemacs-build-report-installation-file)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
199 (progn
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
200 (insert "> Contents of "
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
201 xemacs-build-report-installation-file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
202 ":\n\n")
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
203 (if (featurep 'mime-setup)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
204 (progn
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
205 (mime-edit-insert-tag
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
206 "application"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
207 "octet-stream"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
208 (concat
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
209 "\nContent-Disposition: attachment;"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
210 " filename=\""
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
211 (file-name-nondirectory
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
212 xemacs-build-report-installation-file)
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
213 "\""))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
214 (mime-edit-insert-binary-file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
215 xemacs-build-report-installation-file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
216 xemacs-build-report-file-encoding))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
217 (insert-file-contents xemacs-build-report-installation-file)))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
218 (insert "> " xemacs-build-report-installation-file
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
219 " does not exist!\n\n"))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
220 (goto-char report-begin))))
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
221
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
222 ;;; xemacs-build-report.el ends here