同步特定源代码到 omni_rom源代码目录里面

 #!/bin/bash
base_path="/Volumes/Android/omnirom_5.0" #此目录是我存放源代码的目录
xiaomi_device="device/xiaomi/cancro" #此目录用于存放小米3的device文件
aarch64_darwin_x86="prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9" #同步mac os x 使用的aarch64交叉编译器 #get the xiaomi mi3 cancro device
if [ ! -d $base_path/$xiaomi_device ]; then
mkdir -p $base_path/$xiaomi_device
git clone https://github.com/sndnvaps/android_device_xiaomi_cancro.git -b cm-12.0 .
else
cd $base_path/$xiaomi_device
git clone https://github.com/sndnvaps/android_device_xiaomi_cancro.git -b cm-12.0 .
fi #get the aarch64_darwin_x86 cross compiler if [ ! -d $base_path/$aarch64_darwin_x86 ]; then
mkdir -p $base_path/$aarch64_darwin_x86
git clone https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9.git -b master .
else
cd $base_path/$aarch64_darwin_x86
git clone https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9.git -b master .
fi
上一篇:国内外前端(js)开发框架对比


下一篇:c++中的<<函义