bundle_chre.sh 451 B

12345678910111213141516
  1. #!/bin/bash
  2. #
  3. # Generates a bundle of this project to share with partners. It produces a file
  4. # with the name chre-$HEAD_HASH.bundle where $HEAD_HASH is the current ToT
  5. # commit hash.
  6. #
  7. # Usage:
  8. # ./bundle_chre.sh
  9. BRANCH=`git rev-parse --abbrev-ref --symbolic-full-name @{u}`
  10. HEAD_HASH=`git describe --always --long $BRANCH`
  11. FILENAME=chre-$HEAD_HASH.bundle
  12. git bundle create $FILENAME $BRANCH
  13. echo
  14. echo "Created bundle for $BRANCH as $FILENAME"