0fed27b109
Take a command line option for who to send to, rather than relying on having the proper variable set or commented out. Also, add some tab completion. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
26 lines
564 B
Bash
Executable File
26 lines
564 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
zparseopts -D -K \
|
|
-nfs+=WHO -nfsd+=WHO -nfsutils+=WHO -xfstests+=WHO -fstests+=WHO
|
|
|
|
if [[ ${#WHO} -eq 0 ]]; then
|
|
echo "Who to submit to?"
|
|
exit 1
|
|
fi
|
|
|
|
TO=(--to=linux-nfs@vger.kernel.org)
|
|
for who in $WHO; do
|
|
case $who in
|
|
--nfs) TO+=(--to=trond.myklebust@hammerspace.com) ;;
|
|
--nfsd) TO+=(--to=chuck.lever@oracle.com) ;;
|
|
--nfsutils) TO+=(--to=steved@redhat.com) ;;
|
|
--xfstests | --fstests) TO+=(--to=fstests@vger.kernel.org) ;;
|
|
esac
|
|
done
|
|
|
|
TO+=(--cc=anna@kernel.org)
|
|
TO+=(--from=Anna.Schumaker@Netapp.com)
|
|
TO=$(echo ${(u)TO})
|
|
|
|
git send-email $TO $*
|