Setting up CVS Notifications

Example:
#!/bin/sh

(
        id -P |
        awk -F: '{
                print $1 " (" gensub(",.*", "", "", $8) ")\t" strftime("%F %R:%S %z (%Z)")
        }
        END {
                print "\nRepository: '"$2"'\n"
        }'
        echo "Directory: $1"
        egrep -v '^In directory|^Update of'
) | mail -s "[$2] cvs commit $1" $3