Shagen Ogandzhanian
4 years ago
3 changed files with 25 additions and 14 deletions
@ -1,9 +1,23 @@ |
|||||||
cd /androidx-main |
#!/bin/bash |
||||||
~/bin/repo init -u https://android.googlesource.com/platform/manifest \ |
|
||||||
|
function bootstrap() { |
||||||
|
cd /androidx-main |
||||||
|
~/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 -j4 |
||||||
|
|
||||||
|
mkdir -p /mnt/agent |
||||||
|
ln -sf /androidx-main/tools/ /mnt/agent/tools |
||||||
|
ln -sf /androidx-main/prebuilts/ /mnt/agent/prebuilts |
||||||
|
ln -sf /androidx-main/external /mnt/agent/external |
||||||
|
} |
||||||
|
|
||||||
|
if [ ! -e /tmp/init ]; then |
||||||
|
touch /tmp/init |
||||||
|
echo "bootstrapping" |
||||||
|
sleep 10 |
||||||
|
else |
||||||
|
echo "not bootstrapping, all done" |
||||||
|
fi |
||||||
|
|
||||||
mkdir -p /mnt/agent |
/bin/bash |
||||||
ln -sf /androidx-main/tools/ /mnt/agent/tools |
|
||||||
ln -sf /androidx-main/prebuilts/ /mnt/agent/prebuilts |
|
||||||
ln -sf /androidx-main/external /mnt/agent/external |
|
||||||
|
Loading…
Reference in new issue