Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
imbroglius authored Jul 29, 2024
1 parent e3f8c63 commit 2ae1bb4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,26 @@ set -e
BL=$PWD/imbroglios_gsi
BD=$HOME/builds
BV=$1
LMD=.repo/local_manifests

initRepos() {
echo "--> Initializing workspace"
repo init -u https://android.googlesource.com/platform/manifest -b android-14.0.0_r54 --git-lfs
echo

echo "--> Preparing local manifest"
echo "--> Preparing local manifest"
if [ -d "$LMD" ]; then
echo "Deleting old local manifests"
rm -r $LMD
fi
read -p "click_me"
echo "Fetching new local manifests"
mkdir -p .repo/local_manifests
cp $BL/build/default.xml .repo/local_manifests/default.xml
cp $BL/build/remove.xml .repo/local_manifests/remove.xml
echo

}

syncRepos() {
echo "--> Syncing repos"
repo sync -c --force-sync --no-clone-bundle --no-tags -j$(nproc --all) || repo sync -c --force-sync --no-clone-bundle --no-tags -j$(nproc --all)
Expand Down

0 comments on commit 2ae1bb4

Please sign in to comment.