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