Created
February 6, 2015 17:49
-
-
Save Manishearth/25a31d2401e92837071b to your computer and use it in GitHub Desktop.
Deps for Servo on the Flame
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The function name lies | |
shallowclone() { | |
mkdir $2 | |
cd $2 | |
git init | |
git remote add origin $1 | |
# Unfortunately, `git fetch origin $SHA --depth n` isn't working | |
# perhaps git.mozilla.org doesn't support such fetches? | |
git fetch origin | |
git checkout $3 | |
rm .git -rf | |
cd .. | |
} | |
git clone [email protected]:mozilla-b2g/B2G.git | |
cd B2G | |
# For bionic/libc/$ARCH_DIR/include/ | |
# bionic/libc/include/ | |
# bionic/libc/kernel/common/ | |
# bionic/libc/kernel/common/$ARCH_DIR/ | |
# bionic/libm/include/ | |
# bionic/ | |
shallowclone https://git.mozilla.org/external/caf/platform/bionic bionic e36fba720d5327bf5532dfcde013239080f38b56 | |
# For system/core/include | |
# system/ | |
mkdir system | |
cd system | |
shallowclone https://git.mozilla.org/external/caf/platform/system/qcom qcom 63e3f6f176caad587d42bba4c16b66d953fb23c2 | |
shallowclone https://git.mozilla.org/external/caf/platform/system/security security ee8068b9e7bfb2770635062fc9c2035be2142bd8 | |
shallowclone https://git.mozilla.org/external/caf/platform/system/vold vold 42fa2a0f14f965970a4b629a176bbd2666edf017 | |
shallowclone https://git.mozilla.org/external/caf/platform/system/netd netd a6531f7befb49b1c81bc0de7e51c5482b308e1c5 | |
shallowclone https://git.mozilla.org/external/caf/platform/system/core core 42839aedcf70bf6bc92a3b7ea4a5cc9bf9aef3f9 | |
shallowclone https://git.mozilla.org/external/caf/platform/system/bluetooth bluetooth 42839aedcf70bf6bc92a3b7ea4a5cc9bf9aef3f9 | |
shallowclone https://git.mozilla.org/external/caf/platform/system/extras extras 576f57b6510de59c08568b53c0fb60588be8689e | |
shallowclone https://git.mozilla.org/external/caf/platform/system/media media c1332c21c608f4932a6d7e83450411cde53315ef | |
shallowclone https://github.com/mozilla-b2g/platform_system_bluetoothd bluetoothd bluetoothd | |
shallowclone https://github.com/mozilla-b2g/platform_system_nfcd nfcd nfcd d19dad5844e8803d5e88d1577a2742b4f5cbc467 | |
shallowclone https://github.com/mozilla-b2g/platform_system_libfdio libfdio libfdio 8fcd25d64f0f67d1a6f7037a4c83ce6d95466770 | |
cd .. | |
# For frameworks/native/opengl/include | |
mkdir frameworks | |
cd frameworks | |
shallowclone https://git.mozilla.org/external/caf/platform/frameworks/native native a46a9f1ac0ed5662d614c277cbb14eb3f332f365 | |
cd .. | |
# For external/zlib | |
mkdir external | |
cd external | |
shallowclone https://git.mozilla.org/external/caf/platform/external/zlib zlib 6eb3570ff8fa71bd83bb375b4bf09804c6089fed | |
cd .. | |
# Can be avoided if you have the NDK locally | |
# For ndk/sources/cxx-stl/stlport/stlport | |
# ndk/sources/cxx-stl/system/include | |
shallowclone https://git.mozilla.org/external/caf/platform/ndk ndk e58ef003be4306bb53a8c11331146f39e4eab31f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment