#!/bin/bash

set -e;
source "build/envsetup.sh";

## ASB
python2 build/tools/repopick.py -i -f -t asb-2019.05-cm11
python2 build/tools/repopick.py -i -f -t asb-2019.06-cm11 -e 249686,249685,249539
python2 build/tools/repopick.py -i -f -t asb-2019.07-cm11 -e 251511
python2 build/tools/repopick.py -i -f -t asb-2019.08-cm11
python2 build/tools/repopick.py -i -f -t asb-2019.09-cm11 -e 258942,259725,259796,259800,259827
python2 build/tools/repopick.py -i -f -t asb-2019.10-cm11
python2 build/tools/repopick.py -i -f -t asb-2019.11-cm11
python2 build/tools/repopick.py -i -f -t asb-2019.12-cm11 -e 265818,265820
python2 build/tools/repopick.py -i -f -t asb-2020.01-cm11

## Platform
python2 build/tools/repopick.py -i -f 145233 -P vendor/cm # adb insecure
python2 build/tools/repopick.py -i -f 404680 -P vendor/cm # cm: config: common: Enable ADB Root by default

# Fixes
cd external/chromium_org/third_party/WebKit && git cherry-pick c3985850df37f0d3db1ae7d88a5ef0c325a029fc && croot # bison fix
