38 lines
962 B
Bash
38 lines
962 B
Bash
#!/bin/bash
|
|
|
|
echo
|
|
echo "--------------------------------------"
|
|
echo " LeOS-U Buildbot "
|
|
echo " by "
|
|
echo " harvey186 "
|
|
echo "--------------------------------------"
|
|
echo
|
|
|
|
git clone http://62.178.96.192:3000/JoJo/LeOS-GSI.git -b LeOS-U
|
|
cd LeOS-GSI
|
|
git clone https://github.com/ponces/treble_aosp -b android-14.0
|
|
|
|
set -e
|
|
|
|
initRepos() {
|
|
if [ ! -d .repo ]; then
|
|
echo "--> Initializing workspace"
|
|
repo init -u https://android.googlesource.com/platform/manifest -b android-14.0.0_r17 --git-lfs
|
|
echo
|
|
echo "--> Preparing local manifest"
|
|
mkdir -p .repo/local_manifests
|
|
cp LeOS/leos.xml .repo/local_manifests/leos.xml
|
|
cp LeOS/removeAOSP.xml .repo/local_manifests/remove.xml
|
|
echo
|
|
fi
|
|
}
|
|
|
|
syncRepos() {
|
|
echo "--> Syncing repos"
|
|
repo sync -c --force-sync --no-clone-bundle --no-tags -j$(nproc --all)
|
|
echo
|
|
}
|
|
|
|
|
|
|