124237Skre#!/bin/sh - 212373Sralph# 3*61420Sbostic# Copyright (c) 1983, 1993 4*61420Sbostic# The Regents of the University of California. All rights reserved. 522381Sdist# 644971Sbostic# %sccs.include.redist.sh% 722381Sdist# 8*61420Sbostic# @(#)sendbug.sh 8.1 (Berkeley) 06/04/93 933416Sbostic# 1012373Sralph 1144971Sbostic# create a bug report and mail it to '4bsd-bugs'. 1244971Sbostic 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. 2055694Sbostic: ${BUGADDR=4bsd-bugs@CS.Berkeley.EDU} 2137887Sbostic: ${EDITOR=vi} 2224237Skre 2337887Sbostictrap 'rm -f $TEMP ; exit 1' 1 2 3 13 15 2424237Skre 2537887Sbosticcp $FORMAT $TEMP 2644972Sbosticchmod u+w $TEMP 2724237Skreif $EDITOR $TEMP 2824237Skrethen 2924237Skre if cmp -s $FORMAT $TEMP 3024237Skre then 3124237Skre echo "File not changed, no bug report submitted." 3224237Skre exit 3324237Skre fi 3424237Skre case "$#" in 3537887Sbostic 0) sendmail -t -oi $BUGADDR < $TEMP ;; 3637887Sbostic *) sendmail -t -oi "$@" < $TEMP ;; 3724237Skre esac 3824237Skrefi 3924632Sserge 4037887Sbosticrm -f $TEMP 41