Annotation of 43BSDReno/libexec/bugfiler/sendbug.sh, revision 1.1

1.1     ! root        1: #!/bin/sh -
        !             2: #
        !             3: # Copyright (c) 1983 The Regents of the University of California.
        !             4: # All rights reserved.
        !             5: #
        !             6: # Redistribution and use in source and binary forms are permitted provided
        !             7: # that: (1) source distributions retain this entire copyright notice and
        !             8: # comment, and (2) distributions including binaries display the following
        !             9: # acknowledgement:  ``This product includes software developed by the
        !            10: # University of California, Berkeley and its contributors'' in the
        !            11: # documentation or other materials provided with the distribution and in
        !            12: # all advertising materials mentioning features or use of this software.
        !            13: # Neither the name of the University nor the names of its contributors may
        !            14: # be used to endorse or promote products derived from this software without
        !            15: # specific prior written permission.
        !            16: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
        !            17: # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
        !            18: # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            19: #
        !            20: #      @(#)sendbug.sh  5.11 (Berkeley) 7/25/90
        !            21: #
        !            22: 
        !            23: # create a bug report and mail it to '4bsd-bugs'.
        !            24: 
        !            25: PATH=/bin:/sbin:/usr/sbin:/usr/bin
        !            26: export PATH
        !            27: 
        !            28: TEMP=/tmp/bug$$
        !            29: FORMAT=/usr/share/misc/bugformat
        !            30: 
        !            31: # uucp sites should use ": ${BUGADDR=ucbvax!4bsd-bugs}" with a suitable path.
        !            32: : ${[email protected]}
        !            33: : ${EDITOR=vi}
        !            34: 
        !            35: trap 'rm -f $TEMP ; exit 1' 1 2 3 13 15
        !            36: 
        !            37: cp $FORMAT $TEMP
        !            38: chmod u+w $TEMP
        !            39: if $EDITOR $TEMP
        !            40: then
        !            41:        if cmp -s $FORMAT $TEMP
        !            42:        then
        !            43:                echo "File not changed, no bug report submitted."
        !            44:                exit
        !            45:        fi
        !            46:        case "$#" in
        !            47:        0) sendmail -t -oi $BUGADDR  < $TEMP ;;
        !            48:        *) sendmail -t -oi "$@" < $TEMP ;;
        !            49:        esac
        !            50: fi
        !            51: 
        !            52: rm -f $TEMP

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.