bk-make-sum
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  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. Linus, please do a
  9. bk pull http://gkernel.bkbits.net/$DIRBASE
  10. This will update the following files:
  11. EOT
  12. bk changes -L -d'$unless(:MERGE:){:CSETREV:n}' $LINUS_REPO |
  13. while read rev; do
  14.   bk export -tpatch -r$rev
  15. done | diffstat -p1 2>/dev/null
  16. cat <<EOT
  17. through these ChangeSets:
  18. EOT
  19. bk changes -L -d'$unless(:MERGE:){ChangeSet|:CSETREV:n}' $LINUS_REPO |
  20. bk -R prs -h -d'$unless(:MERGE:){<:P:@:HOST:> (:D: :I:)n$each(:C:){   (:C:)n}n}' -
  21. } > /tmp/linus.txt
  22. cat <<EOT
  23. Mail text in /tmp/linus.txt; please check and send using your favourite
  24. mailer.
  25. EOT