annotate lisp/utils/build-report.el @ 207:e45d5e7c476e r20-4b2

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