This script can help you clone the repositories available in this organization and the objects needed to build a functional ROM for the available devices.
First, enter your work environment. This is an example to build Lineage OS
:~$ cd roms/LineageOS
:~/roms/LineageOS$
Now, clone this script according to the device you want to build:
Doha: curl -o doha_staging.sh https://raw.githubusercontent.com/trinket-common/the_cloner/staging/doha_staging.sh && chmod +x doha_staging.sh
:~/roms/LineageOS$ curl -o <device>_<revision>.sh https://raw.githubusercontent.com/trinket-common/the_cloner/<revision>/<device>_<revision>.sh;
:~/roms/LineageOS$ chmod +x <device>_<revision>.sh
Afterwards, just run the script and the whole project will be cloned automatically!
:~/roms/LineageOS$ ./<device>_<revision>.sh
/*
* Copyright (C) 2018 - 2021 kytoaq <[email protected]>
* Copyright (C) 2020 - 2021 Motorola™ Trinket
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/