Skip to content

Instantly share code, notes, and snippets.

@AstroProfundis
Forked from ma34s/build-cm12.sh
Last active September 15, 2015 17:21
Show Gist options
  • Save AstroProfundis/d4640ae0560289711889 to your computer and use it in GitHub Desktop.
Save AstroProfundis/d4640ae0560289711889 to your computer and use it in GitHub Desktop.
#!/bin/bash
export USE_CCACHE=1
export CCACHE_DIR=~/.ccache
export JAVA_HOME=/usr/lib64/jvm/java
export PATH=$PATH:$JAVA_HOME/bin
export ANDROID_JAVA_HOME=$JAVA_HOME
export PATH=$PATH:~/bin
export KBUILD_BUILD_HOST=moe.cat
device=$1
date
. build/envsetup.sh
if ( echo -n $2 | grep -q -e "\S" ); then
export CM_BUILDTYPE=$2
else
export CM_BUILDTYPE=AOJP
fi
time brunch $device
echo "end date: `date`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment