Mercurial > octave-nkf
annotate octave-bug.in @ 9536:592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 17 Aug 2009 17:24:21 -0400 |
parents | 16f53d29049f |
children | d0239bddf621 |
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 |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
56 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
|
57 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
|
58 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
|
59 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
|
60 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
|
61 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
|
62 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
|
63 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
|
64 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
|
65 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
|
66 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
|
67 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
|
68 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
|
69 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
|
70 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
|
71 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
|
72 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
|
73 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
|
74 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
|
75 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
|
76 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
|
77 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
|
78 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
|
79 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
|
80 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
|
81 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
|
82 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
|
83 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
|
84 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
|
85 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
|
86 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
|
87 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
|
88 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
|
89 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
|
90 GLPK_LIBS=%GLPK_LIBS% |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
91 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
|
92 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
|
93 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
|
94 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
|
95 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
|
96 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
|
97 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
|
98 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
|
99 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
|
100 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
|
101 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
|
102 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
|
103 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
|
104 X11_LIBS=%X11_LIBS% |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
105 ZLIB_LIBS=%ZLIB_LIBS% |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
106 |
3590 | 107 DEFS=%OCTAVE_CONF_DEFS% |
797 | 108 |
3082 | 109 : ${USER=$LOGNAME} |
110 | |
2031 | 111 CC_AND_VERSION= |
112 if test -n "$CC_VERSION"; then | |
113 CC_AND_VERSION="$CC, version $CC_VERSION" | |
114 fi | |
115 | |
116 CXX_AND_VERSION= | |
117 if test -n "$CXX_VERSION"; then | |
118 CXX_AND_VERSION="$CXX, version $CXX_VERSION" | |
119 fi | |
120 | |
846 | 121 PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:$PATH |
797 | 122 export PATH |
123 | |
124 TEMP=/tmp/octave-bug.$$ | |
125 | |
5111 | 126 if [ -z "$DEFEDITOR" ] && [ -z "$EDITOR" ]; then |
127 if [ -x /usr/bin/editor ]; then | |
128 DEFEDITOR=editor | |
129 elif [ -x /usr/local/bin/ce ]; then | |
130 DEFEDITOR=ce | |
131 elif [ -x /usr/local/bin/emacs ]; then | |
132 DEFEDITOR=emacs | |
133 elif [ -x /usr/contrib/bin/emacs ]; then | |
134 DEFEDITOR=emacs | |
135 elif [ -x /usr/bin/emacs ]; then | |
136 DEFEDITOR=emacs | |
137 elif [ -x /usr/bin/xemacs ]; then | |
138 DEFEDITOR=xemacs | |
139 elif [ -x /usr/contrib/bin/jove ]; then | |
140 DEFEDITOR=jove | |
141 elif [ -x /usr/local/bin/jove ]; then | |
142 DEFEDITOR=jove | |
143 elif [ -x /usr/bin/vi ]; then | |
144 DEFEDITOR=vi | |
145 else | |
146 echo "octave-bug: No default editor found: attempting to use vi" >&2 | |
147 DEFEDITOR=vi | |
148 fi | |
149 fi | |
150 | |
151 : ${EDITOR=$DEFEDITOR} | |
152 | |
5229 | 153 if [ -z "$DEFPAGER" ] && [ -z "$PAGER" ]; then |
154 if [ -x /usr/bin/pager ]; then | |
155 DEFPAGER=pager | |
156 elif [ -x /usr/bin/less ]; then | |
157 DEFPAGER=less | |
5230 | 158 elif [ -x /bin/less ]; then |
5229 | 159 DEFPAGER=less |
160 elif [ -x /usr/local/bin/less ]; then | |
161 DEFPAGER=less | |
162 elif [ -x /usr/bin/more ]; then | |
163 DEFPAGER=more | |
164 elif [ -x /bin/more ]; then | |
165 DEFPAGER=more | |
166 elif [ -x /usr/bin/pg ]; then | |
167 DEFPAGER=pg | |
168 elif [ -x /bin/pg ]; then | |
169 DEFPAGER=pg | |
170 else | |
171 echo "octave-bug: No default pager found: attempting to use more" >&2 | |
172 DEFPAGER=more | |
173 fi | |
174 fi | |
175 | |
176 : ${PAGER=$DEFPAGER} | |
797 | 177 |
178 trap 'rm -f $TEMP $TEMP.x; exit 1' 1 2 3 13 15 | |
179 trap 'rm -f $TEMP $TEMP.x' 0 | |
180 | |
181 UN= | |
2222 | 182 if (uname) > /dev/null 2>&1; then |
797 | 183 UN=`uname -a` |
184 fi | |
185 | |
186 HAVE_FMT=false | |
2222 | 187 if (fmt < /dev/null) > /dev/null 2>&1; then |
797 | 188 HAVE_FMT=true |
189 fi | |
190 | |
2564 | 191 # Check whether to use -n or \c to keep echo from printing a newline |
192 # character. Stolen from autoconf, which borrowed the idea from dist 3.0. | |
193 | |
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
4084 | 196 if (echo -n testing; echo 1,2,3) | $SED s/-n/xn/ | grep xn >/dev/null; then |
2564 | 197 echo_n= |
198 echo_c=' | |
199 ' | |
200 else | |
201 echo_n=-n | |
202 echo_c= | |
203 fi | |
204 else | |
205 echo_n= | |
206 echo_c='\c' | |
207 fi | |
208 | |
801 | 209 ss_p=`echo $VERSION | grep "^ss-"` |
2222 | 210 if test -n "$ss_p"; then |
5041 | 211 BUGADDR="maintainers@octave.org" |
801 | 212 else |
2691 | 213 pretest_p=`echo $VERSION \ |
4084 | 214 | $SED 's,.*\.\([0-9]*\).*,\1,' \ |
2691 | 215 | grep -v '\.' \ |
216 | grep '[0-9]'` | |
2222 | 217 |
218 if test -n "$pretest_p" && test "$pretest_p" -ge 90; then | |
5041 | 219 BUGADDR="maintainers@octave.org" |
2222 | 220 else |
5041 | 221 BUGADDR="bug@octave.org" |
2222 | 222 fi |
801 | 223 fi |
797 | 224 |
225 SUBJECT="[50 character or so descriptive subject here (for reference)]" | |
2222 | 226 if test $# -gt 0; then |
797 | 227 case "$1" in |
228 -s) | |
801 | 229 shift |
2222 | 230 if test $# -gt 0; then |
797 | 231 SUBJECT="$1" |
801 | 232 shift |
797 | 233 else |
234 echo "usage: octave-bug [-s subject]" | |
235 exit 1 | |
236 fi | |
237 ;; | |
238 esac | |
239 fi | |
240 | |
241 cat > $TEMP << EOF | |
242 To: $BUGADDR | |
3082 | 243 EOF |
244 if test -n "$USER"; then | |
245 cat >> $TEMP << EOF | |
246 Cc: $USER | |
247 EOF | |
248 fi | |
249 cat >> $TEMP << EOF | |
797 | 250 Subject: $SUBJECT |
851 | 251 -------- |
797 | 252 Bug report for Octave $VERSION configured for $MACHINE |
253 | |
254 Description: | |
255 ----------- | |
256 | |
257 * Please replace this item with a detailed description of the | |
258 problem. Suggestions or general comments are also welcome. | |
259 | |
260 Repeat-By: | |
261 --------- | |
262 | |
263 * Please replace this item with a description of the sequence of | |
264 events that causes the problem to occur. | |
265 | |
266 Fix: | |
267 --- | |
268 | |
269 * If possible, replace this item with a description of how to | |
270 fix the problem (if you don't have a fix for the problem, don't | |
271 include this section, but please do submit your report anyway). | |
272 | |
801 | 273 |
274 | |
275 Configuration (please do not edit this section): | |
276 ----------------------------------------------- | |
277 | |
9536
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
278 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
|
279 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
|
280 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
|
281 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
|
282 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
|
283 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
|
284 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
|
285 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
|
286 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
|
287 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
|
288 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
|
289 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
|
290 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
|
291 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
|
292 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
|
293 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
|
294 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
|
295 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
|
296 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
|
297 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
|
298 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
|
299 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
|
300 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
|
301 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
|
302 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
|
303 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
|
304 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
|
305 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
|
306 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
|
307 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
|
308 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
|
309 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
|
310 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
|
311 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
|
312 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
|
313 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
|
314 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
|
315 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
|
316 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
|
317 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
|
318 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
|
319 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
|
320 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
|
321 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
|
322 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
|
323 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
|
324 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
|
325 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
|
326 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
|
327 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
|
328 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
|
329 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
|
330 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
|
331 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
|
332 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
|
333 GLPK_LIBS: $GLPK_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
334 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
|
335 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
|
336 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
|
337 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
|
338 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
|
339 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
|
340 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
|
341 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
|
342 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
|
343 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
|
344 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
|
345 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
|
346 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
|
347 X11_LIBS: $X11_LIBS |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9245
diff
changeset
|
348 ZLIB_LIBS: $ZLIB_LIBS |
801 | 349 DEFS: |
350 | |
797 | 351 EOF |
352 | |
2222 | 353 if $HAVE_FMT; then |
4084 | 354 echo $DEFS | fmt | $SED 's/^/ /' >> $TEMP |
801 | 355 else |
356 echo $DEFS >> $TEMP | |
357 fi | |
358 | |
2222 | 359 if test $# -gt 0; then |
360 if test -f "$1"; then | |
801 | 361 cat >> $TEMP << EOF |
362 | |
363 User-preferences (please do not edit this section): | |
364 -------------------------------------------------- | |
365 | |
366 EOF | |
367 cat $1 >> $TEMP | |
368 fi | |
369 fi | |
370 | |
797 | 371 chmod u+w $TEMP |
372 cp $TEMP $TEMP.x | |
373 | |
374 status=0 | |
375 | |
2564 | 376 editing=true |
377 | |
378 while $editing; do | |
379 if $EDITOR $TEMP; then | |
380 while $editing; do | |
381 echo $echo_n "(a)bort, (e)dit, (l)ist, (s)end? $echo_c" | |
382 read ans | |
383 case "$ans" in | |
384 a* | A*) | |
385 status=1 | |
386 editing=false | |
387 ;; | |
388 e* | E*) | |
389 break; | |
390 ;; | |
391 l* | L*) | |
392 $PAGER $TEMP | |
393 ;; | |
394 s* | S*) | |
395 editing=false | |
396 ;; | |
397 esac | |
398 done | |
399 else | |
400 echo "problems with edit -- no bug report submitted" | |
401 status=1 | |
402 editing=false | |
403 fi | |
404 done | |
405 | |
406 if test $status -eq 0; then | |
2222 | 407 if cmp -s $TEMP $TEMP.x; then |
797 | 408 echo "file not changed -- no bug report submitted" |
409 status=1 | |
2031 | 410 elif test `wc $TEMP | awk '{print $1}'` -eq 0; then |
411 echo "empty bug report file -- not submitted" | |
412 status=1 | |
797 | 413 else |
851 | 414 |
415 # Try to extract the recipient address, in case the To: line in the | |
964 | 416 # message template has been changed. Also get cc: lines. |
851 | 417 |
4084 | 418 TO_ADDR=`$SED -e '/^--------[ \t]*$/q' $TEMP | $SED -n -e 's/^[Tt][Oo]://p'` |
419 CC_ADDR=`$SED -e '/^--------[ \t]*$/q' $TEMP | $SED -n -e 's/^[Cc][Cc]://p'` | |
964 | 420 |
2222 | 421 if test -z "$TO_ADDR"; then |
851 | 422 echo "no valid \`To:' field found in header -- using $BUGADDR instead" |
423 else | |
964 | 424 BUGADDR="$TO_ADDR" |
851 | 425 fi |
426 | |
964 | 427 BUGADDR="$BUGADDR $CC_ADDR" |
428 | |
4084 | 429 TMP_SUB=`$SED -e '/^--------[ \t]*$/q' $TEMP | $SED -n -e 's/^Subject://p'` |
2564 | 430 |
431 if test -n "$TMP_SUB"; then | |
432 SUBJECT="$TMP_SUB" | |
433 fi | |
434 | |
851 | 435 # Delete the `--------' separator in the message. |
436 | |
1066 | 437 # Don't pretty-print this. Odd whitespace kills Ultrix AWK! |
438 | |
439 awk 'BEGIN{in_header=1;} /^--------[ \t]*$/ { | |
440 if (in_header) { in_header=0; print ""; next; } | |
441 } { print $0; }' $TEMP > $TEMP.x | |
851 | 442 |
443 # Now try to mail it. | |
444 | |
7171 | 445 # indicate that we have not yet sent email successfully |
446 status=11 | |
447 | |
1066 | 448 if test $status -ne 0; then |
7171 | 449 ( mailx -s "$SUBJECT" $BUGADDR < $TEMP.x ) > /dev/null 2>&1 |
1066 | 450 status=$? |
451 if test $status -ne 0; then | |
7171 | 452 ( Mail -s "$SUBJECT" $BUGADDR < $TEMP.x ) > /dev/null 2>&1 |
453 status=$? | |
454 if test $status -ne 0; then | |
455 ( /usr/ucb/mail -s "$SUBJECT" $BUGADDR < $TEMP.x ) > /dev/null 2>&1 | |
456 status=$? | |
457 # make /bin/mail our last resort -- it ignores the subject line | |
458 if test $status -ne 0; then | |
459 ( /bin/mail $BUGADDR < $TEMP.x ) > /dev/null 2>&1 | |
460 status=$? | |
461 if test $status -ne 0; then | |
462 echo "unable to send mail..." | |
463 fi | |
464 fi | |
465 fi | |
1066 | 466 fi |
467 fi | |
797 | 468 fi |
2564 | 469 fi |
470 | |
471 if test $status -ne 0; then | |
3082 | 472 dead_bug_file=$HOME/dead-octave-bug |
473 looking_for_file=true; | |
474 n=1 | |
475 while $looking_for_file; do | |
476 if test -f "$dead_bug_file-$n"; then | |
477 n=`expr $n + 1` | |
478 else | |
479 looking_for_file=false | |
480 dead_bug_file=$dead_bug_file-$n | |
481 fi | |
482 done | |
483 echo "saving message in $dead_bug_file"; | |
484 cat $TEMP >> $dead_bug_file; | |
2564 | 485 exit 1 |
797 | 486 else |
2564 | 487 echo "bug report sent to: $TO_ADDR" |
488 echo " cc to: $CC_ADDR" | |
797 | 489 fi |
490 | |
491 exit $status |