# HG changeset patch # User jwe # Date 872620602 0 # Node ID 7fa66715abc1cfea34d14ab298f8e47a6441e618 # Parent 8c779ed7979b21d2e4e5b6d4d2adcb71568f946e [project @ 1997-08-26 18:36:42 by jwe] diff -r 8c779ed7979b -r 7fa66715abc1 ChangeLog --- a/ChangeLog Mon Aug 25 15:52:58 1997 +0000 +++ b/ChangeLog Tue Aug 26 18:36:42 1997 +0000 @@ -1,3 +1,12 @@ +Tue Aug 26 13:30:36 1997 John W. Eaton + + * octave-bug.in: CC bug report to user if $USER or $LOGNAME is set. + +Mon Aug 25 11:06:54 1997 John W. Eaton + + * octave-bug.in: Avoid clobbering existing dead bug report files + by numbering them. + Wed Aug 13 20:34:14 1997 John W. Eaton * emacs/octave-mod.el (octave-before-magic-comment-p): New function. diff -r 8c779ed7979b -r 7fa66715abc1 octave-bug.in --- a/octave-bug.in Mon Aug 25 15:52:58 1997 +0000 +++ b/octave-bug.in Tue Aug 26 18:36:42 1997 +0000 @@ -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"