Advertisement
bigrushdog

ics_build_script

Nov 27th, 2011
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.13 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while [ "$1" != "" ]; do
  4.     case $1 in
  5.         -s | --sync )           shift
  6.                                 SYNC_REPO="true"
  7.                                 ;;
  8.         -c | --clobber )        shift
  9.                 CLOBBER_REPO="true"
  10.                                 ;;
  11.         -h | --help )           echo " -s or --sync to repo sync, -c or --clobber to clean entire repo, -h or --help to display this help dialog"
  12.                                 exit
  13.                                 ;;
  14.         * )                     echo " -s or --sync to repo sync, -c or --clobber to clean entire repo, -h or --help to display this help dialog"
  15.                                 exit 1
  16.     esac
  17. done
  18.  
  19. WORKING="/home/bigrushdog/tiamat_aosp"
  20.  
  21. cd $WORKING
  22.  
  23. if [ "$SYNC_REPO" == "true" ]; then
  24.   echo "Syncing Eos AOSP Repository"
  25.   repo sync
  26. fi
  27.  
  28. if [ "$CLOBBER_REPO" == "true" ]; then
  29.   echo "Cleaning Eos AOSP Repository"
  30.   make clobber
  31. fi
  32.  
  33. echo "Making build environment"
  34. source build/envsetup.sh
  35.  
  36. echo "Ordering full_stingray-eng from lunch menu"
  37. lunch full_stingray-eng
  38.  
  39. echo "Building distro"
  40. make -j16 otapackage
  41.  
  42. exit 0
  43.  
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement