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