annotate lisp/build-report.el @ 217:d44af0c54775 r20-4b7

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