MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / Documentation / BK-usage / bk-make-sum
blob58ca46a0fcc65b08440e3cbfb79de6537369dc4b
1 #!/bin/sh -e
2 # DIR=$HOME/BK/axp-2.5
3 # cd $DIR
5 LINUS_REPO=$1
6 DIRBASE=`basename $PWD`
9 cat <<EOT
10 Please do a
12 bk pull bk://gkernel.bkbits.net/$DIRBASE
14 This will update the following files:
16 EOT
18 bk export -tpatch -hdu -r`bk repogca $LINUS_REPO`,+ | diffstat -p1 2>/dev/null
20 cat <<EOT
22 through these ChangeSets:
24 EOT
26 bk changes -L -d'$unless(:MERGE:){ChangeSet|:CSETREV:\n}' $LINUS_REPO |
27 bk -R prs -h -d'$unless(:MERGE:){<:P:@:HOST:> (:D: :I:)\n$each(:C:){ (:C:)\n}\n}' -
29 } > /tmp/linus.txt
31 cat <<EOT
32 Mail text in /tmp/linus.txt; please check and send using your favourite
33 mailer.
34 EOT