124237Skre#!/bin/sh - 212373Sralph# 322381Sdist# Copyright (c) 1983 Regents of the University of California. 433416Sbostic# All rights reserved. 522381Sdist# 633416Sbostic# Redistribution and use in source and binary forms are permitted 734910Sbostic# provided that the above copyright notice and this paragraph are 834910Sbostic# duplicated in all such forms and that any documentation, 934910Sbostic# advertising materials, and other materials related to such 1034910Sbostic# distribution and use acknowledge that the software was developed 1134910Sbostic# by the University of California, Berkeley. The name of the 1234910Sbostic# University may not be used to endorse or promote products derived 1334910Sbostic# from this software without specific prior written permission. 1434910Sbostic# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 1534910Sbostic# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 1634910Sbostic# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 1722381Sdist# 18*37887Sbostic# @(#)sendbug.sh 5.9 (Berkeley) 05/11/89 1933416Sbostic# 2012373Sralph# Create a bug report and mail to '4bsd-bugs'. 2112373Sralph 22*37887SbosticPATH=/bin:/sbin:/usr/sbin:/usr/bin 23*37887Sbosticexport PATH 24*37887Sbostic 2524237SkreTEMP=/tmp/bug$$ 26*37887SbosticFORMAT=/usr/share/misc/bugformat 2716238Sralph 2824238Skre# uucp sites should use ": ${BUGADDR=ucbvax!4bsd-bugs}" with a suitable path. 2924238Skre: ${BUGADDR=4bsd-bugs@BERKELEY.EDU} 30*37887Sbostic: ${EDITOR=vi} 3124237Skre 32*37887Sbostictrap 'rm -f $TEMP ; exit 1' 1 2 3 13 15 3324237Skre 34*37887Sbosticcp $FORMAT $TEMP 3524237Skreif $EDITOR $TEMP 3624237Skrethen 3724237Skre if cmp -s $FORMAT $TEMP 3824237Skre then 3924237Skre echo "File not changed, no bug report submitted." 4024237Skre exit 4124237Skre fi 4224237Skre case "$#" in 43*37887Sbostic 0) sendmail -t -oi $BUGADDR < $TEMP ;; 44*37887Sbostic *) sendmail -t -oi "$@" < $TEMP ;; 4524237Skre esac 4624237Skrefi 4724632Sserge 48*37887Sbosticrm -f $TEMP 49