• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
10BRANCH=`git rev-parse --abbrev-ref --symbolic-full-name @{u}`
11HEAD_HASH=`git describe --always --long $BRANCH`
12FILENAME=chre-$HEAD_HASH.bundle
13git bundle create $FILENAME $BRANCH
14
15echo
16echo "Created bundle for $BRANCH as $FILENAME"
17