1 message in com.perforce.perforce-user[p4] RE:Need a diff trigger script (f...
FromSent OnAttachments
Yariv Sheizaf28 Sep 2004 01:21 
Subject:[p4] RE:Need a diff trigger script (for 2003.1) (Cris Holdorph)
From:Yariv Sheizaf (yari@barak.net.il)
Date:09/28/2004 01:21:55 AM
List:com.perforce.perforce-user

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