#!/bin/sh
echo "Fetching Android system headers"
git clone --depth=1 --branch gingerbread-release git://github.com/CyanogenMod/android_frameworks_base.git ../android-source/frameworks/base
git clone --depth=1 --branch gingerbread-release git://github.com/CyanogenMod/android_system_core.git ../android-source/system/cores
root@Ubuntu64:/home/zhangbin/ffmpeg# cd android
root@Ubuntu64:/home/zhangbin/ffmpeg/android# ls
root@Ubuntu64:/home/zhangbin/ffmpeg/android# ls
fetchAndroidSytemHeader.sh fetchAndroidSytemHeader.sh~
root@Ubuntu64:/home/zhangbin/ffmpeg/android# source fetchAndroidSytemHeader.sh
Cloning into '../android-source/frameworks/base'...
remote: Counting objects: 748528, done.
remote: Compressing objects: 100% (182175/182175), done.
remote: Total 748528 (delta 496350), reused 744661 (delta 492612)
Receiving objects: 100% (748528/748528), 1.00 GiB | 124 KiB/s, done.
Resolving deltas: 100% (496350/496350), done.
Cloning into '../android-source/system/cores'...
remote: Counting objects: 18795, done.
remote: Compressing objects: 100% (6778/6778), done.
remote: Total 18795 (delta 12289), reused 18231 (delta 11797)
Receiving objects: 100% (18795/18795), 4.65 MiB | 187 KiB/s, done.
Resolving deltas: 100% (12289/12289), done.
root@Ubuntu64:/home/zhangbin/ffmpeg/android#