Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while [ "$1" != "" ]; do
- case $1 in
- -s | --sync ) shift
- SYNC_REPO="true"
- ;;
- -c | --clobber ) shift
- CLOBBER_REPO="true"
- ;;
- -h | --help ) echo " -s or --sync to repo sync, -c or --clobber to clean entire repo, -h or --help to display this help dialog"
- exit
- ;;
- * ) echo " -s or --sync to repo sync, -c or --clobber to clean entire repo, -h or --help to display this help dialog"
- exit 1
- esac
- done
- WORKING="/home/bigrushdog/tiamat_aosp"
- cd $WORKING
- if [ "$SYNC_REPO" == "true" ]; then
- echo "Syncing Eos AOSP Repository"
- repo sync
- fi
- if [ "$CLOBBER_REPO" == "true" ]; then
- echo "Cleaning Eos AOSP Repository"
- make clobber
- fi
- echo "Making build environment"
- source build/envsetup.sh
- echo "Ordering full_stingray-eng from lunch menu"
- lunch full_stingray-eng
- echo "Building distro"
- make -j16 otapackage
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement