import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / Documentation / BK-usage / bk-make-sum
1 #!/bin/sh -e
2 # DIR=$HOME/BK/axp-2.5
3 # cd $DIR
4
5 LINUS_REPO=$1
6 DIRBASE=`basename $PWD`
7
8 {
9 cat <<EOT
10 Linus, please do a
11
12         bk pull http://gkernel.bkbits.net/$DIRBASE
13
14 This will update the following files:
15
16 EOT
17
18 bk changes -L -d'$unless(:MERGE:){:CSETREV:\n}' $LINUS_REPO |
19 while read rev; do
20   bk export -tpatch -r$rev
21 done | diffstat -p1 2>/dev/null
22
23 cat <<EOT
24
25 through these ChangeSets:
26
27 EOT
28
29 bk changes -L -d'$unless(:MERGE:){ChangeSet|:CSETREV:\n}' $LINUS_REPO |
30 bk -R prs -h -d'$unless(:MERGE:){<:P:@:HOST:> (:D: :I:)\n$each(:C:){   (:C:)\n}\n}' -
31
32 } > /tmp/linus.txt
33
34 cat <<EOT
35 Mail text in /tmp/linus.txt; please check and send using your favourite
36 mailer.
37 EOT