Mercurial > hg > octave-terminal
changeset 2222:a2e240d3f336
[project @ 1996-05-17 08:00:55 by jwe]
author | jwe |
---|---|
date | Fri, 17 May 1996 08:02:36 +0000 |
parents | b9b575b75d81 |
children | 57429a64a466 |
files | doc/interpreter/Makefile.in octave-bug.in |
diffstat | 2 files changed, 26 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/Makefile.in +++ b/doc/interpreter/Makefile.in @@ -91,11 +91,11 @@ .PHONY: check install: all - $(top_srcdir)/mkinstalldirs $(mandir) $(infodir) - @if test -d $(mandir) ; then \ - rm -f $(mandir)/octave.$(manext) ; \ - echo "installing $(srcdir)/octave.1 in $(mandir)" ; \ - $(INSTALL_DATA) $(srcdir)/octave.1 $(mandir)/octave.$(manext) ; \ + $(top_srcdir)/mkinstalldirs $(man1dir) $(infodir) + @if test -d $(man1dir) ; then \ + rm -f $(man1dir)/octave$(man1ext) ; \ + echo "installing $(srcdir)/octave.1 in $(man1dir)" ; \ + $(INSTALL_DATA) $(srcdir)/octave.1 $(man1dir)/octave$(man1ext) ; \ fi @if test -d $(infodir) ; then \ rm -f $(infodir)/octave.info* ; \ @@ -130,7 +130,7 @@ .PHONY: install uninstall: - rm -f $(infodir)/octave.info* $(mandir)/octave.$(manext) + rm -f $(infodir)/octave.info* $(man1dir)/octave$(man1ext) .PHONY: uninstall tags: $(SOURCES)
--- a/octave-bug.in +++ b/octave-bug.in @@ -64,33 +64,36 @@ trap 'rm -f $TEMP $TEMP.x' 0 UN= -if (uname) > /dev/null 2>&1 -then +if (uname) > /dev/null 2>&1; then UN=`uname -a` fi HAVE_FMT=false -if (fmt < /dev/null) > /dev/null 2>&1 -then +if (fmt < /dev/null) > /dev/null 2>&1; then HAVE_FMT=true fi ss_p=`echo $VERSION | grep "^ss-"` -if test -n "$ss_p" -then +if test -n "$ss_p"; then BUGADDR="octave-maintainers@bevo.che.wisc.edu" else - BUGADDR="bug-octave@bevo.che.wisc.edu" + pretest_p=`echo $VERSION \ + | sed 's,.*[0-9]*\.[0-9]*\.\([0-9]*\).*,\1,' \ + | grep -v '\.'` + + if test -n "$pretest_p" && test "$pretest_p" -ge 90; then + BUGADDR="octave-maintainers@bevo.che.wisc.edu" + else + BUGADDR="bug-octave@bevo.che.wisc.edu" + fi fi SUBJECT="[50 character or so descriptive subject here (for reference)]" -if test $# -gt 0 -then +if test $# -gt 0; then case "$1" in -s) shift - if test $# -gt 0 - then + if test $# -gt 0; then SUBJECT="$1" shift else @@ -159,17 +162,14 @@ EOF -if $HAVE_FMT -then +if $HAVE_FMT; then echo $DEFS | fmt | sed 's/^/ /' >> $TEMP else echo $DEFS >> $TEMP fi -if test $# -gt 0 -then - if test -f "$1" - then +if test $# -gt 0; then + if test -f "$1"; then cat >> $TEMP << EOF User-preferences (please do not edit this section): @@ -185,10 +185,8 @@ status=0 -if $EDITOR $TEMP -then - if cmp -s $TEMP $TEMP.x - then +if $EDITOR $TEMP; then + if cmp -s $TEMP $TEMP.x; then echo "file not changed -- no bug report submitted" status=1 elif test `wc $TEMP | awk '{print $1}'` -eq 0; then @@ -202,8 +200,7 @@ TO_ADDR=`sed -e '/^--------[ \t]*$/q' $TEMP | sed -n -e 's/^[Tt][Oo]://p'` CC_ADDR=`sed -e '/^--------[ \t]*$/q' $TEMP | sed -n -e 's/^[Cc][Cc]://p'` - if test -z "$TO_ADDR" - then + if test -z "$TO_ADDR"; then echo "no valid \`To:' field found in header -- using $BUGADDR instead" else BUGADDR="$TO_ADDR"