#!/bin/sh -e# DIR=$HOME/BK/axp-2.5# cd $DIRLINUS_REPO=$1DIRBASE=`basename$PWD`{cat<<EOTPlease do a bk pull bk://gkernel.bkbits.net/$DIRBASEThis will update the following files:EOTbk export-tpatch-hdu-r`bk repogca $LINUS_REPO`,+ | diffstat -p1 2>/dev/nullcat<<EOTthrough these ChangeSets:EOTbk changes -L-d'$unless(:MERGE:){ChangeSet|:CSETREV:\n}'$LINUS_REPO |bk -R prs -h-d'$unless(:MERGE:){<:P:@:HOST:> (:D: :I:)\n$each(:C:){ (:C:)\n}\n}' -}> /tmp/linus.txtcat<<EOTMail text in /tmp/linus.txt; please check and send using your favouritemailer.EOT