Mercurial > hg > octave-terminal
changeset 3082:7fa66715abc1
[project @ 1997-08-26 18:36:42 by jwe]
author | jwe |
---|---|
date | Tue, 26 Aug 1997 18:36:42 +0000 |
parents | 8c779ed7979b |
children | 4bdba9d56316 |
files | ChangeLog octave-bug.in |
diffstat | 2 files changed, 31 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Tue Aug 26 13:30:36 1997 John W. Eaton <jwe@bevo.che.wisc.edu> + + * octave-bug.in: CC bug report to user if $USER or $LOGNAME is set. + +Mon Aug 25 11:06:54 1997 John W. Eaton <jwe@bevo.che.wisc.edu> + + * octave-bug.in: Avoid clobbering existing dead bug report files + by numbering them. + Wed Aug 13 20:34:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> * emacs/octave-mod.el (octave-before-magic-comment-p): New function.
--- a/octave-bug.in +++ b/octave-bug.in @@ -42,6 +42,8 @@ LIBDLFCN=%LIBDLFCN% DEFS=%DEFS% +: ${USER=$LOGNAME} + CC_AND_VERSION= if test -n "$CC_VERSION"; then CC_AND_VERSION="$CC, version $CC_VERSION" @@ -125,6 +127,13 @@ cat > $TEMP << EOF To: $BUGADDR +EOF +if test -n "$USER"; then +cat >> $TEMP << EOF +Cc: $USER +EOF +fi +cat >> $TEMP << EOF Subject: $SUBJECT -------- Bug report for Octave $VERSION configured for $MACHINE @@ -294,8 +303,19 @@ fi if test $status -ne 0; then - echo "saving message in \$HOME/dead.octave-bug"; - cat $TEMP >> $HOME/dead.octave-bug; + dead_bug_file=$HOME/dead-octave-bug + looking_for_file=true; + n=1 + while $looking_for_file; do + if test -f "$dead_bug_file-$n"; then + n=`expr $n + 1` + else + looking_for_file=false + dead_bug_file=$dead_bug_file-$n + fi + done + echo "saving message in $dead_bug_file"; + cat $TEMP >> $dead_bug_file; exit 1 else echo "bug report sent to: $TO_ADDR"