/Documentation/BK-usage/bk-make-sum

https://bitbucket.org/evzijst/gittest · Shell · 34 lines · 19 code · 12 blank · 3 comment · 0 complexity · b18af86685c869805888895e99f4691e MD5 · raw file

  1. #!/bin/sh -e
  2. # DIR=$HOME/BK/axp-2.5
  3. # cd $DIR
  4. LINUS_REPO=$1
  5. DIRBASE=`basename $PWD`
  6. {
  7. cat <<EOT
  8. Please do a
  9. bk pull bk://gkernel.bkbits.net/$DIRBASE
  10. This will update the following files:
  11. EOT
  12. bk export -tpatch -hdu -r`bk repogca $LINUS_REPO`,+ | diffstat -p1 2>/dev/null
  13. cat <<EOT
  14. through these ChangeSets:
  15. EOT
  16. bk changes -L -d'$unless(:MERGE:){ChangeSet|:CSETREV:\n}' $LINUS_REPO |
  17. bk -R prs -h -d'$unless(:MERGE:){<:P:@:HOST:> (:D: :I:)\n$each(:C:){ (:C:)\n}\n}' -
  18. } > /tmp/linus.txt
  19. cat <<EOT
  20. Mail text in /tmp/linus.txt; please check and send using your favourite
  21. mailer.
  22. EOT