Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
cm-13.0 branch f. root-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MSe1969 committed May 12, 2018
0 parents commit 96a5258
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build_falcon.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Own Values
export CCACHE_DIR=~/.ccache13
export OUT_DIR_COMMON_BASE=~/out-android

# Use pre-defined build script
source z_patches/build_falcon.sh



9 changes: 9 additions & 0 deletions build_gts210ltexx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# Own Values
export CCACHE_DIR=~/.ccache13
export OUT_DIR_COMMON_BASE=~/out-android

# Use pre-defined build script
source z_patches/build_gts210ltexx.sh

11 changes: 11 additions & 0 deletions build_osprey.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Own Values
export CCACHE_DIR=~/.ccache13
export OUT_DIR_COMMON_BASE=~/out-android

# Use pre-defined build script
source z_patches/build_osprey.sh



19 changes: 19 additions & 0 deletions cp-root.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash



copy_files() {
cat <<EOF
build_falcon.sh
build_gts210ltexx.sh
build_osprey.sh
make_clean.sh
switch_microG.sh
EOF
}


copy_files | while read FILE; do
cp "$FILE" ../../
done

6 changes: 6 additions & 0 deletions make_clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Out directory on SSD
export OUT_DIR_COMMON_BASE=~/out-android
make clean

51 changes: 51 additions & 0 deletions switch_microG.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash

switch_branches() {
TOPDIR=$PWD
cd $2
echo "-"
echo "$PWD"
git checkout $1
cd $TOPDIR
}

switch_zpatch() {
TOPDIR=$PWD
cd z_patches
echo "-"
echo "$PWD"
case "$2" in
R) ./patches_reverse.sh
git checkout $1
;;
S) ./patches_apply.sh
;;
esac
cd $TOPDIR
}

case "$1" in
microG) BRANCH="cm-13.0-microG"
;;
default) BRANCH="cm-13.0"
;;
*) echo "usage: switch_microg default|microG"
exit
;;
esac

switch_zpatch $BRANCH R

switch_branches $BRANCH external/sepolicy
switch_branches $BRANCH external/sqlite
switch_branches $BRANCH frameworks/base
switch_branches $BRANCH frameworks/native
switch_branches $BRANCH packages/apps/Settings
switch_branches $BRANCH packages/apps/SetupWizard
switch_branches $BRANCH vendor/cm
switch_branches $BRANCH .repo/local_manifests

switch_zpatch $BRANCH S



0 comments on commit 96a5258

Please sign in to comment.