|
|
@ -4,20 +4,14 @@ function bootstrap() { |
|
|
|
cd /androidx-main |
|
|
|
cd /androidx-main |
|
|
|
~/bin/repo init -u https://android.googlesource.com/platform/manifest \ |
|
|
|
~/bin/repo init -u https://android.googlesource.com/platform/manifest \ |
|
|
|
-b androidx-main --depth=1 --partial-clone --clone-filter=blob:limit=10M |
|
|
|
-b androidx-main --depth=1 --partial-clone --clone-filter=blob:limit=10M |
|
|
|
~/bin/repo sync -c --no-tags --no-clone-bundle -j4 |
|
|
|
~/bin/repo sync -c --no-tags --no-clone-bundle -j$(nproc --all) |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p /mnt/agent |
|
|
|
mkdir -p /mnt/agent |
|
|
|
ln -sf /androidx-main/tools/ /mnt/agent/tools |
|
|
|
ln -sf /androidx-main/tools/ /mnt/agent/tools |
|
|
|
ln -sf /androidx-main/prebuilts/ /mnt/agent/prebuilts |
|
|
|
ln -sf /androidx-main/prebuilts/ /mnt/agent/prebuilts |
|
|
|
ln -sf /androidx-main/external /mnt/agent/external |
|
|
|
ln -sf /androidx-main/external /mnt/agent/external |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -e /tmp/init ]; then |
|
|
|
rm -rf /androidx-main/frameworks |
|
|
|
touch /tmp/init |
|
|
|
} |
|
|
|
echo "bootstrapping" |
|
|
|
|
|
|
|
bootstrap |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
echo "not bootstrapping, all done" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/bin/bash |
|
|
|
bootstrap |
|
|
|