Files
strongswan-ext/packaging/utils/tattle
T
Martin Willi 997358a6c4 - import of strongswan-2.7.0
- applied patch for charon
2006-04-28 07:14:48 +00:00

34 lines
480 B
Bash
Executable File

#! /bin/sh
# tattle [-f] subject address ...
# report a freeswan CVS change made by someone other than "owner" of files
PATH=/bin:/usr/bin ; export PATH
noself=yes # don't mail to person making change
case "$1" in
-f) noself= ; shift ;;
esac
msg="freeswan commit: $1"
shift
them=
if test "$noself"
then
iam="`id -un`"
for who
do
if test " $who" != " $iam"
then
them="$them $who"
fi
done
else
them="$*"
fi
if test " $them" != " "
then
mail -s "$msg" $them
fi