Break commonly used commands out into functions
This commit is contained in:
parent
3f862c12c5
commit
226f78bd15
@ -34,6 +34,34 @@ gitReset() {
|
||||
}
|
||||
export -f gitReset;
|
||||
|
||||
resetWorkspace() {
|
||||
repo forall -c 'git add -A && git reset --hard' && rm -rf packages/apps/{FDroid,GmsCore,Silence} out && repo sync -j20 --force-sync;
|
||||
}
|
||||
export -f resetWorkspace;
|
||||
|
||||
buildDevice() {
|
||||
brunch lineage_$1-user;
|
||||
}
|
||||
export -f buildDevice;
|
||||
|
||||
buildAll() {
|
||||
brunch lineage_clark-user && brunch lineage_d852-userdebug && brunch lineage_bacon-user && brunch lineage_thor-userdebug && brunch lineage_mako-user && brunch lineage_angler-user && brunch lineage_bullhead-user && brunch lineage_d802-userdebug && brunch lineage_d855-userdebug && brunch lineage_ether-user && brunch lineage_flounder-user && brunch lineage_flo-user && brunch lineage_FP2-user && brunch lineage_hammerhead-user && brunch lineage_himaul-user && brunch lineage_i9100-userdebug && brunch lineage_i9305-user && brunch lineage_jfltexx-user && brunch lineage_klte-user && brunch lineage_m8-user && brunch lineage_marlin-user && brunch lineage_n5110-user && brunch lineage_osprey-user && brunch lineage_sailfish-user && brunch lineage_shamu-user && brunch lineage_Z00T-user;
|
||||
}
|
||||
export -f buildAll;
|
||||
|
||||
patchWorkspace() {
|
||||
source $scripts/Patch.sh;
|
||||
source $scripts/Defaults.sh;
|
||||
source $scripts/Overclock.sh;
|
||||
source $scripts/Optimize.sh;
|
||||
source $scripts/Rebrand.sh;
|
||||
source $scripts/Theme.sh;
|
||||
source $scripts/Deblob.sh;
|
||||
source $scripts/Patch_CVE.sh;
|
||||
source build/envsetup.sh;
|
||||
}
|
||||
export -f patchWorkspace;
|
||||
|
||||
enableDexPreOpt() {
|
||||
echo "WITH_DEXPREOPT := true" >> BoardConfig.mk;
|
||||
echo "WITH_DEXPREOPT_PIC := true" >> BoardConfig.mk;
|
||||
|
@ -15,14 +15,18 @@
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#Initialize aliases
|
||||
#source ../../Scripts/LineageOS-14.1/00init.sh
|
||||
|
||||
#Delete Everything and Sync
|
||||
#repo forall -c 'git add -A && git reset --hard' && rm -rf packages/apps/{FDroid,GmsCore,Silence} out && repo sync -j20 --force-sync
|
||||
#resetWorkspace
|
||||
|
||||
#Apply all of our changes
|
||||
#source ../../Scripts/LineageOS-14.1/00init.sh && source $scripts/Patch.sh && source $scripts/Defaults.sh && source $scripts/Overclock.sh && source $scripts/Optimize.sh && source $scripts/Rebrand.sh && source $scripts/Theme.sh && source $scripts/Deblob.sh && source $scripts/Patch_CVE.sh && source build/envsetup.sh
|
||||
#patchWorkspace
|
||||
|
||||
#Build!
|
||||
#brunch lineage_clark-user && brunch lineage_d852-userdebug && brunch lineage_bacon-user && brunch lineage_thor-userdebug && brunch lineage_mako-user && brunch lineage_angler-user && brunch lineage_bullhead-user && brunch lineage_d802-userdebug && brunch lineage_d855-userdebug && brunch lineage_ether-user && brunch lineage_flounder-user && brunch lineage_flo-user && brunch lineage_FP2-user && brunch lineage_hammerhead-user && brunch lineage_himaul-user && brunch lineage_i9100-userdebug && brunch lineage_i9305-user && brunch lineage_jfltexx-user && brunch lineage_klte-user && brunch lineage_m8-user && brunch lineage_marlin-user && brunch lineage_n5110-user && brunch lineage_osprey-user && brunch lineage_sailfish-user && brunch lineage_shamu-user && brunch lineage_Z00T-user
|
||||
#buildDevice [device]
|
||||
#buildAll
|
||||
#XXX: Currently broken
|
||||
# lineage_herolte-user - missing libprotobuf-cpp-full.so
|
||||
# lineage_h815-user - drivers/input/touchscreen/DS5/RefCode_CustomerImplementation.c:147:1: warning: the frame size of 2064 bytes is larger than 2048 bytes [-Wframe-larger-than=]
|
||||
|
Loading…
x
Reference in New Issue
Block a user