124237Skre#!/bin/sh - 212373Sralph# 3*44971Sbostic# Copyright (c) 1983 The Regents of the University of California. 433416Sbostic# All rights reserved. 522381Sdist# 6*44971Sbostic# %sccs.include.redist.sh% 722381Sdist# 8*44971Sbostic# @(#)sendbug.sh 5.10 (Berkeley) 07/25/90 933416Sbostic# 1012373Sralph 11*44971Sbostic# create a bug report and mail it to '4bsd-bugs'. 12*44971Sbostic 1337887SbosticPATH=/bin:/sbin:/usr/sbin:/usr/bin 1437887Sbosticexport PATH 1537887Sbostic 1624237SkreTEMP=/tmp/bug$$ 1737887SbosticFORMAT=/usr/share/misc/bugformat 1816238Sralph 1924238Skre# uucp sites should use ": ${BUGADDR=ucbvax!4bsd-bugs}" with a suitable path. 2024238Skre: ${BUGADDR=4bsd-bugs@BERKELEY.EDU} 2137887Sbostic: ${EDITOR=vi} 2224237Skre 2337887Sbostictrap 'rm -f $TEMP ; exit 1' 1 2 3 13 15 2424237Skre 2537887Sbosticcp $FORMAT $TEMP 2624237Skreif $EDITOR $TEMP 2724237Skrethen 2824237Skre if cmp -s $FORMAT $TEMP 2924237Skre then 3024237Skre echo "File not changed, no bug report submitted." 3124237Skre exit 3224237Skre fi 3324237Skre case "$#" in 3437887Sbostic 0) sendmail -t -oi $BUGADDR < $TEMP ;; 3537887Sbostic *) sendmail -t -oi "$@" < $TEMP ;; 3624237Skre esac 3724237Skrefi 3824632Sserge 3937887Sbosticrm -f $TEMP 40