-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95bf087
commit bf4afe1
Showing
3 changed files
with
10 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Custom-TC | ||
This branch contains the configurations required to build TCs. | ||
This is a private-ish branch. | ||
# Misc | ||
This repo contains various random code, scripts and snippets. | ||
This is a private-ish repo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,99 +115,15 @@ if ! shopt -oq posix; then | |
. /etc/bash_completion | ||
fi | ||
fi | ||
if [ $TILIX_ID ] || [ $VTE_VERSION ] ; then source /etc/profile.d/vte.sh; fi # Ubuntu Budgie END | ||
|
||
# Custom Commands | ||
ccache -F 0 && ccache -M 15 | ||
export USE_CCACHE=1 | ||
export CCACHE_DIR=~/.ccache | ||
export I_WANT_A_QUAIL_STAR=true | ||
export USE_NINJA=false | ||
export CUSTOM_HOME="/mnt/d/Pixel/Dev/projects" | ||
export LC_ALL=C | ||
export ANDROID_JACK_VM_ARGS="-Xmx4608m -Dfile.encoding=UTF-8 -XX:+TieredCompilation" | ||
export SERVER_NB_COMPILE=4 | ||
export ARCH=x86_64 | ||
export CROSS_COMPILE_I=x86_64-linux- | ||
export CROSS_COMPILE=$CROSS_COMPILE_I | ||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | ||
export PATH=/usr/lib/ccache:~/Stuff/TC/bin:$JAVA_HOME/bin:$PATH | ||
source ~/Stuff/guides/git_wrapper | ||
export PATH=~/bin:$PATH | ||
source $CUSTOM_HOME/Misc/git_wrapper | ||
cd $CUSTOM_HOME | ||
history -wc | ||
rm -f ~/.bash_history | ||
eval "$(ssh-agent -s)" | ||
|
||
# Custom Functions | ||
build_rom() { | ||
if [[ -z "$1" ]] | ||
then | ||
printf "\nNo Target Device\n\n" | ||
else | ||
rm -rf out | ||
if [[ "$(ls ~ | grep -qc "ftp")" == "0" ]] | ||
then | ||
mkdir ~/ftp | ||
fi | ||
while true | ||
do | ||
if [[ -z "$1" ]] | ||
then | ||
break | ||
else | ||
export D=$1 | ||
. build/envsetup.sh | ||
breakfast $D | ||
mka bacon -j24 | ||
mv out/target/product/$D/lineage*UNOFFICIAL*.zip ~/ftp | ||
make clean | ||
./prebuilts/sdk/tools/jack-admin stop-server | ||
unset D | ||
shift 1 | ||
fi | ||
done | ||
fi | ||
return | ||
} | ||
|
||
build_IAZ() { | ||
if [[ -z "$1" ]] | ||
then | ||
printf "\nNo Target Device For Apps\n\n" | ||
else | ||
rm -rf out | ||
mkdir out | ||
echo 1 > out/syncsave | ||
if [[ "$(ls ~ | grep -qc "ftp")" == "0" ]] | ||
then | ||
mkdir ~/ftp | ||
fi | ||
. build/envsetup.sh | ||
breakfast $1 | ||
./tools/IAZ/IAZ | ||
./tools/IAZ/IAZ MLA | ||
./prebuilts/sdk/tools/jack-admin stop-server | ||
fi | ||
return | ||
} | ||
|
||
upload_rom() { | ||
if [[ "$(ls ~ | grep -qc "ftp")" != "0" ]] | ||
then | ||
export CUR=$PWD | ||
mkdir -p ~/ftp | ||
cd ~/ftp | ||
if [[ -z "$1" ]] | ||
then | ||
mv ~/*.zip ./ | ||
wput ftp://nutcasev15:[email protected] * | ||
fi | ||
if [[ "$1" == "--clean" ]] | ||
then | ||
rm -rf *.zip | ||
fi | ||
cd $CUR | ||
unset CUR | ||
fi | ||
return | ||
} | ||
|
||
clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters