Hi Cris,
Maybe it could help you:
Script content:
###########################################################
#!/bin/sh
rm -f /cygdrive/d/p4scripts/$$.p4diff
CHG=$1
for i in `p4 describe -s $CHG | /usr/bin/grep "... //" | /usr/bin/sed 's/...
//' | /usr/bin/awk -F# '{print $1}'`
do
p4 diff $i >> /cygdrive/d/p4scripts/$$.p4diff
done
exit 0
############################################################
(pre-submit, in v2003.1 terms) Trigger command:
tdif //... "d:\cygwin\bin\bash.exe d:/p4scripts/tdif.sh %changelist%"
-----------------------------------------------------------
And now you just add sendmail command before the "exit 0" line.
Note: The Sendmail should run on the Perforce server.
Regards,
Tel. +972-9-7687888
Fax. +972-9-7687999
Cel. +972-54-4560022
mailto:yariv at direct-solution.com