Mercurial > octave-nkf
annotate octave-bug.in @ 9569:86787a560712
octave-bug.in: correct substitutions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 26 Aug 2009 13:45:01 -0400 |
parents | d3fccc4c4b9e |
children | 1ab56c73ec7c |
rev | line source |
---|---|
797 | 1 #! /bin/sh - |
2 # | |
7019 | 3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2004, |
9245 | 4 # 2005, 2006, 2009 John W. Eaton |
7019 | 5 # |
6 # This file is part of Octave. | |
7 # | |
8 # Octave is free software; you can redistribute it and/or modify it | |
9 # under the terms of the GNU General Public License as published by the | |
10 # Free Software Foundation; either version 3 of the License, or (at | |
11 # your option) any later version. | |
12 # | |
13 # Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 # for more details. | |
17 # | |
18 # You should have received a copy of the GNU General Public License | |
19 # along with Octave; see the file COPYING. If not, see | |
20 # <http://www.gnu.org/licenses/>. | |
21 | |
797 | 22 # octave-bug - create a bug report and mail it to the bug-octave |
23 # mailing list. | |
24 # | |
25 # Patterned after the bashbug script from bash 1.14. | |
26 | |
2155 | 27 # Configuration: these variables are filled in when running make to |
28 # compile Octave. | |
797 | 29 |
3681 | 30 config_opts=%OCTAVE_CONF_config_opts% |
3590 | 31 VERSION=%OCTAVE_CONF_VERSION% |
4084 | 32 SED=%OCTAVE_CONF_SED% |
3768 | 33 MACHINE=%OCTAVE_CONF_CANONICAL_HOST_TYPE% |
3590 | 34 F77=%OCTAVE_CONF_F77% |
35 FFLAGS=%OCTAVE_CONF_FFLAGS% | |
36 FPICFLAG=%OCTAVE_CONF_FPICFLAG% | |
37 FLIBS=%OCTAVE_CONF_FLIBS% | |
38 CPPFLAGS=%OCTAVE_CONF_CPPFLAGS% | |
39 INCFLAGS=%OCTAVE_CONF_INCFLAGS% | |
40 CC=%OCTAVE_CONF_CC% | |
41 CC_VERSION=%OCTAVE_CONF_CC_VERSION% | |
42 CFLAGS=%OCTAVE_CONF_CFLAGS% | |
43 CPICFLAG=%OCTAVE_CONF_CPICFLAG% | |
44 CXX=%OCTAVE_CONF_CXX% | |
45 CXX_VERSION=%OCTAVE_CONF_CXX_VERSION% | |
3681 | 46 CXXFLAGS=%OCTAVE_CONF_CXXFLAGS% |
3590 | 47 CXXPICFLAG=%OCTAVE_CONF_CXXPICFLAG% |
3859 | 48 LD_CXX=%OCTAVE_CONF_LD_CXX% |
3590 | 49 LDFLAGS=%OCTAVE_CONF_LDFLAGS% |
50 LIBFLAGS=%OCTAVE_CONF_LIBFLAGS% | |
51 RLD_FLAG=%OCTAVE_CONF_RLD_FLAG% | |
52 LEXLIB=%OCTAVE_CONF_LEXLIB% | |
53 LIBGLOB=%OCTAVE_CONF_LIBGLOB% | |
9536
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
54 LIBS=%OCTAVE_CONF_LIBS% |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
55 |
9569
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
56 AMD_CPPFLAGS=%OCTAVE_CONF_AMD_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
57 AMD_LDFLAGS=%OCTAVE_CONF_AMD_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
58 AMD_LIBS=%OCTAVE_CONF_AMD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
59 ARPACK_CPPFLAGS=%OCTAVE_CONF_ARPACK_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
60 ARPACK_LDFLAGS=%OCTAVE_CONF_ARPACK_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
61 ARPACK_LIBS=%OCTAVE_CONF_ARPACK_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
62 BLAS_LIBS=%OCTAVE_CONF_BLAS_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
63 CAMD_CPPFLAGS=%OCTAVE_CONF_CAMD_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
64 CAMD_LDFLAGS=%OCTAVE_CONF_CAMD_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
65 CAMD_LIBS=%OCTAVE_CONF_CAMD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
66 CARBON_LIBS=%OCTAVE_CONF_CARBON_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
67 CCOLAMD_CPPFLAGS=%OCTAVE_CONF_CCOLAMD_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
68 CCOLAMD_LDFLAGS=%OCTAVE_CONF_CCOLAMD_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
69 CCOLAMD_LIBS=%OCTAVE_CONF_CCOLAMD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
70 CHOLMOD_CPPFLAGS=%OCTAVE_CONF_CHOLMOD_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
71 CHOLMOD_LDFLAGS=%OCTAVE_CONF_CHOLMOD_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
72 CHOLMOD_LIBS=%OCTAVE_CONF_CHOLMOD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
73 COLAMD_CPPFLAGS=%OCTAVE_CONF_COLAMD_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
74 COLAMD_LDFLAGS=%OCTAVE_CONF_COLAMD_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
75 COLAMD_LIBS=%OCTAVE_CONF_COLAMD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
76 CURL_CPPFLAGS=%OCTAVE_CONF_CURL_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
77 CURL_LDFLAGS=%OCTAVE_CONF_CURL_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
78 CURL_LIBS=%OCTAVE_CONF_CURL_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
79 CXSPARSE_CPPFLAGS=%OCTAVE_CONF_CXSPARSE_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
80 CXSPARSE_LDFLAGS=%OCTAVE_CONF_CXSPARSE_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
81 CXSPARSE_LIBS=%OCTAVE_CONF_CXSPARSE_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
82 DL_LIBS=%OCTAVE_CONF_DL_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
83 FFTW3_CPPFLAGS=%OCTAVE_CONF_FFTW3_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
84 FFTW3_LDFLAGS=%OCTAVE_CONF_FFTW3_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
85 FFTW3_LIBS=%OCTAVE_CONF_FFTW3_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
86 FFTW3F_CPPFLAGS=%OCTAVE_CONF_FFTW3F_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
87 FFTW3F_LDFLAGS=%OCTAVE_CONF_FFTW3F_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
88 FFTW3F_LIBS=%OCTAVE_CONF_FFTW3F_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
89 GRAPHICS_LIBS=%OCTAVE_CONF_GRAPHICS_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
90 GLPK_CPPFLAGS=%OCTAVE_CONF_GLPK_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
91 GLPK_LDFLAGS=%OCTAVE_CONF_GLPK_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
92 GLPK_LIBS=%OCTAVE_CONF_GLPK_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
93 HDF5_CPPFLAGS=%OCTAVE_CONF_HDF5_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
94 HDF5_LDFLAGS=%OCTAVE_CONF_HDF5_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
95 HDF5_LIBS=%OCTAVE_CONF_HDF5_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
96 OPENGL_LIBS=%OCTAVE_CONF_OPENGL_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
97 PTHREAD_CFLAGS=%OCTAVE_CONF_PTHREAD_CFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
98 PTHREAD_LIBS=%OCTAVE_CONF_PTHREAD_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
99 QHULL_CPPFLAGS=%OCTAVE_CONF_QHULL_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
100 QHULL_LDFLAGS=%OCTAVE_CONF_QHULL_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
101 QHULL_LIBS=%OCTAVE_CONF_QHULL_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
102 QRUPDATE_LIBS=%OCTAVE_CONF_QRUPDATE_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
103 READLINE_LIBS=%OCTAVE_CONF_READLINE_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
104 REGEX_LIBS=%OCTAVE_CONF_REGEX_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
105 TERM_LIBS=%OCTAVE_CONF_TERM_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
106 UMFPACK_LIBS=%OCTAVE_CONF_UMFPACK_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
107 X11_INCFLAGS=%OCTAVE_CONF_X11_INCFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
108 X11_LIBS=%OCTAVE_CONF_X11_LIBS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
109 Z_CPPFLAGS=%OCTAVE_CONF_Z_CPPFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
110 Z_LDFLAGS=%OCTAVE_CONF_Z_LDFLAGS% |
86787a560712
octave-bug.in: correct substitutions
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
111 Z_LIBS=%OCTAVE_CONF_Z_LIBS% |
9536
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
112 |
3590 | 113 DEFS=%OCTAVE_CONF_DEFS% |
797 | 114 |
3082 | 115 : ${USER=$LOGNAME} |
116 | |
2031 | 117 CC_AND_VERSION= |
118 if test -n "$CC_VERSION"; then | |
119 CC_AND_VERSION="$CC, version $CC_VERSION" | |
120 fi | |
121 | |
122 CXX_AND_VERSION= | |
123 if test -n "$CXX_VERSION"; then | |
124 CXX_AND_VERSION="$CXX, version $CXX_VERSION" | |
125 fi | |
126 | |
846 | 127 PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:$PATH |
797 | 128 export PATH |
129 | |
130 TEMP=/tmp/octave-bug.$$ | |
131 | |
5111 | 132 if [ -z "$DEFEDITOR" ] && [ -z "$EDITOR" ]; then |
133 if [ -x /usr/bin/editor ]; then | |
134 DEFEDITOR=editor | |
135 elif [ -x /usr/local/bin/ce ]; then | |
136 DEFEDITOR=ce | |
137 elif [ -x /usr/local/bin/emacs ]; then | |
138 DEFEDITOR=emacs | |
139 elif [ -x /usr/contrib/bin/emacs ]; then | |
140 DEFEDITOR=emacs | |
141 elif [ -x /usr/bin/emacs ]; then | |
142 DEFEDITOR=emacs | |
143 elif [ -x /usr/bin/xemacs ]; then | |
144 DEFEDITOR=xemacs | |
145 elif [ -x /usr/contrib/bin/jove ]; then | |
146 DEFEDITOR=jove | |
147 elif [ -x /usr/local/bin/jove ]; then | |
148 DEFEDITOR=jove | |
149 elif [ -x /usr/bin/vi ]; then | |
150 DEFEDITOR=vi | |
151 else | |
152 echo "octave-bug: No default editor found: attempting to use vi" >&2 | |
153 DEFEDITOR=vi | |
154 fi | |
155 fi | |
156 | |
157 : ${EDITOR=$DEFEDITOR} | |
158 | |
5229 | 159 if [ -z "$DEFPAGER" ] && [ -z "$PAGER" ]; then |
160 if [ -x /usr/bin/pager ]; then | |
161 DEFPAGER=pager | |
162 elif [ -x /usr/bin/less ]; then | |
163 DEFPAGER=less | |
5230 | 164 elif [ -x /bin/less ]; then |
5229 | 165 DEFPAGER=less |
166 elif [ -x /usr/local/bin/less ]; then | |
167 DEFPAGER=less | |
168 elif [ -x /usr/bin/more ]; then | |
169 DEFPAGER=more | |
170 elif [ -x /bin/more ]; then | |
171 DEFPAGER=more | |
172 elif [ -x /usr/bin/pg ]; then | |
173 DEFPAGER=pg | |
174 elif [ -x /bin/pg ]; then | |
175 DEFPAGER=pg | |
176 else | |
177 echo "octave-bug: No default pager found: attempting to use more" >&2 | |
178 DEFPAGER=more | |
179 fi | |
180 fi | |
181 | |
182 : ${PAGER=$DEFPAGER} | |
797 | 183 |
184 trap 'rm -f $TEMP $TEMP.x; exit 1' 1 2 3 13 15 | |
185 trap 'rm -f $TEMP $TEMP.x' 0 | |
186 | |
187 UN= | |
2222 | 188 if (uname) > /dev/null 2>&1; then |
797 | 189 UN=`uname -a` |
190 fi | |
191 | |
192 HAVE_FMT=false | |
2222 | 193 if (fmt < /dev/null) > /dev/null 2>&1; then |
797 | 194 HAVE_FMT=true |
195 fi | |
196 | |
2564 | 197 # Check whether to use -n or \c to keep echo from printing a newline |
198 # character. Stolen from autoconf, which borrowed the idea from dist 3.0. | |
199 | |
200 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
201 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
4084 | 202 if (echo -n testing; echo 1,2,3) | $SED s/-n/xn/ | grep xn >/dev/null; then |
2564 | 203 echo_n= |
204 echo_c=' | |
205 ' | |
206 else | |
207 echo_n=-n | |
208 echo_c= | |
209 fi | |
210 else | |
211 echo_n= | |
212 echo_c='\c' | |
213 fi | |
214 | |
801 | 215 ss_p=`echo $VERSION | grep "^ss-"` |
2222 | 216 if test -n "$ss_p"; then |
5041 | 217 BUGADDR="maintainers@octave.org" |
801 | 218 else |
2691 | 219 pretest_p=`echo $VERSION \ |
4084 | 220 | $SED 's,.*\.\([0-9]*\).*,\1,' \ |
2691 | 221 | grep -v '\.' \ |
222 | grep '[0-9]'` | |
2222 | 223 |
224 if test -n "$pretest_p" && test "$pretest_p" -ge 90; then | |
5041 | 225 BUGADDR="maintainers@octave.org" |
2222 | 226 else |
5041 | 227 BUGADDR="bug@octave.org" |
2222 | 228 fi |
801 | 229 fi |
797 | 230 |
231 SUBJECT="[50 character or so descriptive subject here (for reference)]" | |
2222 | 232 if test $# -gt 0; then |
797 | 233 case "$1" in |
234 -s) | |
801 | 235 shift |
2222 | 236 if test $# -gt 0; then |
797 | 237 SUBJECT="$1" |
801 | 238 shift |
797 | 239 else |
240 echo "usage: octave-bug [-s subject]" | |
241 exit 1 | |
242 fi | |
243 ;; | |
244 esac | |
245 fi | |
246 | |
247 cat > $TEMP << EOF | |
248 To: $BUGADDR | |
3082 | 249 EOF |
250 if test -n "$USER"; then | |
251 cat >> $TEMP << EOF | |
252 Cc: $USER | |
253 EOF | |
254 fi | |
255 cat >> $TEMP << EOF | |
797 | 256 Subject: $SUBJECT |
851 | 257 -------- |
797 | 258 Bug report for Octave $VERSION configured for $MACHINE |
259 | |
260 Description: | |
261 ----------- | |
262 | |
263 * Please replace this item with a detailed description of the | |
264 problem. Suggestions or general comments are also welcome. | |
265 | |
266 Repeat-By: | |
267 --------- | |
268 | |
269 * Please replace this item with a description of the sequence of | |
270 events that causes the problem to occur. | |
271 | |
272 Fix: | |
273 --- | |
274 | |
275 * If possible, replace this item with a description of how to | |
276 fix the problem (if you don't have a fix for the problem, don't | |
277 include this section, but please do submit your report anyway). | |
278 | |
801 | 279 |
280 | |
281 Configuration (please do not edit this section): | |
282 ----------------------------------------------- | |
283 | |
9536
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
284 uname output: $UN |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
285 configure opts: $config_opts |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
286 SED: $SED |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
287 Fortran compiler: $F77 |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
288 FFLAGS: $FFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
289 FLIBS: $FLIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
290 CPPFLAGS: $CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
291 INCFLAGS: $INCFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
292 C compiler: $CC_AND_VERSION |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
293 CFLAGS: $CFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
294 CPICFLAG: $CPICFLAG |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
295 C++ compiler: $CXX_AND_VERSION |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
296 CXXFLAGS: $CXXFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
297 CXXPICFLAG: $CXXPICFLAG |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
298 LD_CXX: $LD_CXX |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
299 LDFLAGS: $LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
300 LIBFLAGS: $LIBFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
301 RLD_FLAG: $RLD_FLAG |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
302 LEXLIB: $LEXLIB |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
303 LIBGLOB: $LIBGLOB |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
304 LIBS: $LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
305 AMD_CPPFLAGS: $AMD_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
306 AMD_LDFLAGS: $AMD_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
307 AMD_LIBS: $AMD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
308 ARPACK_LIBS: $ARPACK_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
309 BLAS_LIBS: $BLAS_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
310 CAMD_CPPFLAGS: $CAMD_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
311 CAMD_LDFLAGS: $CAMD_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
312 CAMD_LIBS: $CAMD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
313 CARBON_LIBS: $CARBON_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
314 CCOLAMD_CPPFLAGS: $CCOLAMD_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
315 CCOLAMD_LDFLAGS: $CCOLAMD_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
316 CCOLAMD_LIBS: $CCOLAMD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
317 CHOLMOD_CPPFLAGS: $CHOLMOD_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
318 CHOLMOD_LDFLAGS: $CHOLMOD_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
319 CHOLMOD_LIBS: $CHOLMOD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
320 COLAMD_CPPFLAGS: $COLAMD_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
321 COLAMD_LDFLAGS: $COLAMD_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
322 COLAMD_LIBS: $COLAMD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
323 CURL_CPPFLAGS: $CURL_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
324 CURL_LDFLAGS: $CURL_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
325 CURL_LIBS: $CURL_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
326 CXSPARSE_CPPFLAGS: $CXSPARSE_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
327 CXSPARSE_LDFLAGS: $CXSPARSE_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
328 CXSPARSE_LIBS: $CXSPARSE_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
329 DL_LIBS: $DL_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
330 FFTW3_CPPFLAGS: $FFTW3_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
331 FFTW3_LDFLAGS: $FFTW3_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
332 FFTW3_LIBS: $FFTW3_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
333 FFTW3F_CPPFLAGS: $FFTW3F_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
334 FFTW3F_LDFLAGS: $FFTW3F_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
335 FFTW3F_LIBS: $FFTW3F_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
336 GRAPHICS_LIBS: $GRAPHICS_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
337 GLPK_CPPFLAGS: $GLPK_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
338 GLPK_LDFLAGS: $GLPK_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
339 GLPK_LIBS: $GLPK_LIBS |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
340 HDF5_CPPFLAGS: $HDF5_CPPFLAGS |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
341 HDF5_LDFLAGS: $HDF5_LDFLAGS |
9536
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
342 HDF5_LIBS: $HDF5_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
343 OPENGL_LIBS: $OPENGL_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
344 PTHREAD_CFLAGS: $PTHREAD_CFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
345 PTHREAD_LIBS: $PTHREAD_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
346 QHULL_CPPFLAGS: $QHULL_CPPFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
347 QHULL_LDFLAGS: $QHULL_LDFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
348 QHULL_LIBS: $QHULL_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
349 QRUPDATE_LIBS: $QRUPDATE_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
350 READLINE_LIBS: $READLINE_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
351 REGEX_LIBS: $REGEX_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
352 TERM_LIBS: $TERM_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
353 UMFPACK_LIBS: $UMFPACK_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
354 X11_INCFLAGS: $X11_INCFLAGS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
355 X11_LIBS: $X11_LIBS |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
356 Z_CPPFLAGS: $Z_CPPFLAGS |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
357 Z_LDFLAGS: $Z_LDFLAGS |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
358 Z_LIBS: $Z_LIBS |
801 | 359 DEFS: |
360 | |
797 | 361 EOF |
362 | |
2222 | 363 if $HAVE_FMT; then |
4084 | 364 echo $DEFS | fmt | $SED 's/^/ /' >> $TEMP |
801 | 365 else |
366 echo $DEFS >> $TEMP | |
367 fi | |
368 | |
2222 | 369 if test $# -gt 0; then |
370 if test -f "$1"; then | |
801 | 371 cat >> $TEMP << EOF |
372 | |
373 User-preferences (please do not edit this section): | |
374 -------------------------------------------------- | |
375 | |
376 EOF | |
377 cat $1 >> $TEMP | |
378 fi | |
379 fi | |
380 | |
797 | 381 chmod u+w $TEMP |
382 cp $TEMP $TEMP.x | |
383 | |
384 status=0 | |
385 | |
2564 | 386 editing=true |
387 | |
388 while $editing; do | |
389 if $EDITOR $TEMP; then | |
390 while $editing; do | |
391 echo $echo_n "(a)bort, (e)dit, (l)ist, (s)end? $echo_c" | |
392 read ans | |
393 case "$ans" in | |
394 a* | A*) | |
395 status=1 | |
396 editing=false | |
397 ;; | |
398 e* | E*) | |
399 break; | |
400 ;; | |
401 l* | L*) | |
402 $PAGER $TEMP | |
403 ;; | |
404 s* | S*) | |
405 editing=false | |
406 ;; | |
407 esac | |
408 done | |
409 else | |
410 echo "problems with edit -- no bug report submitted" | |
411 status=1 | |
412 editing=false | |
413 fi | |
414 done | |
415 | |
416 if test $status -eq 0; then | |
2222 | 417 if cmp -s $TEMP $TEMP.x; then |
797 | 418 echo "file not changed -- no bug report submitted" |
419 status=1 | |
2031 | 420 elif test `wc $TEMP | awk '{print $1}'` -eq 0; then |
421 echo "empty bug report file -- not submitted" | |
422 status=1 | |
797 | 423 else |
851 | 424 |
425 # Try to extract the recipient address, in case the To: line in the | |
964 | 426 # message template has been changed. Also get cc: lines. |
851 | 427 |
4084 | 428 TO_ADDR=`$SED -e '/^--------[ \t]*$/q' $TEMP | $SED -n -e 's/^[Tt][Oo]://p'` |
429 CC_ADDR=`$SED -e '/^--------[ \t]*$/q' $TEMP | $SED -n -e 's/^[Cc][Cc]://p'` | |
964 | 430 |
2222 | 431 if test -z "$TO_ADDR"; then |
851 | 432 echo "no valid \`To:' field found in header -- using $BUGADDR instead" |
433 else | |
964 | 434 BUGADDR="$TO_ADDR" |
851 | 435 fi |
436 | |
964 | 437 BUGADDR="$BUGADDR $CC_ADDR" |
438 | |
4084 | 439 TMP_SUB=`$SED -e '/^--------[ \t]*$/q' $TEMP | $SED -n -e 's/^Subject://p'` |
2564 | 440 |
441 if test -n "$TMP_SUB"; then | |
442 SUBJECT="$TMP_SUB" | |
443 fi | |
444 | |
851 | 445 # Delete the `--------' separator in the message. |
446 | |
1066 | 447 # Don't pretty-print this. Odd whitespace kills Ultrix AWK! |
448 | |
449 awk 'BEGIN{in_header=1;} /^--------[ \t]*$/ { | |
450 if (in_header) { in_header=0; print ""; next; } | |
451 } { print $0; }' $TEMP > $TEMP.x | |
851 | 452 |
453 # Now try to mail it. | |
454 | |
7171 | 455 # indicate that we have not yet sent email successfully |
456 status=11 | |
457 | |
1066 | 458 if test $status -ne 0; then |
7171 | 459 ( mailx -s "$SUBJECT" $BUGADDR < $TEMP.x ) > /dev/null 2>&1 |
1066 | 460 status=$? |
461 if test $status -ne 0; then | |
7171 | 462 ( Mail -s "$SUBJECT" $BUGADDR < $TEMP.x ) > /dev/null 2>&1 |
463 status=$? | |
464 if test $status -ne 0; then | |
465 ( /usr/ucb/mail -s "$SUBJECT" $BUGADDR < $TEMP.x ) > /dev/null 2>&1 | |
466 status=$? | |
467 # make /bin/mail our last resort -- it ignores the subject line | |
468 if test $status -ne 0; then | |
469 ( /bin/mail $BUGADDR < $TEMP.x ) > /dev/null 2>&1 | |
470 status=$? | |
471 if test $status -ne 0; then | |
472 echo "unable to send mail..." | |
473 fi | |
474 fi | |
475 fi | |
1066 | 476 fi |
477 fi | |
797 | 478 fi |
2564 | 479 fi |
480 | |
481 if test $status -ne 0; then | |
3082 | 482 dead_bug_file=$HOME/dead-octave-bug |
483 looking_for_file=true; | |
484 n=1 | |
485 while $looking_for_file; do | |
486 if test -f "$dead_bug_file-$n"; then | |
487 n=`expr $n + 1` | |
488 else | |
489 looking_for_file=false | |
490 dead_bug_file=$dead_bug_file-$n | |
491 fi | |
492 done | |
493 echo "saving message in $dead_bug_file"; | |
494 cat $TEMP >> $dead_bug_file; | |
2564 | 495 exit 1 |
797 | 496 else |
2564 | 497 echo "bug report sent to: $TO_ADDR" |
498 echo " cc to: $CC_ADDR" | |
797 | 499 fi |
500 | |
501 exit $status |