码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-02-21 18:49:02      阅读:347      评论:0      收藏:0      [点我收藏+]

标签:

 1 #!/bin/bash
 2 base_path="/Volumes/Android/omnirom_5.0"   #此目录是我存放源代码的目录
 3 xiaomi_device="device/xiaomi/cancro"    #此目录用于存放小米3的device文件 
 4 aarch64_darwin_x86="prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9"    #同步mac os x 使用的aarch64交叉编译器
 5 
 6 #get the xiaomi mi3 cancro device
 7  if [ ! -d $base_path/$xiaomi_device ]; then
 8    mkdir -p $base_path/$xiaomi_device
 9    git clone https://github.com/sndnvaps/android_device_xiaomi_cancro.git -b cm-12.0 .
10  else
11   cd $base_path/$xiaomi_device
12    git clone https://github.com/sndnvaps/android_device_xiaomi_cancro.git -b cm-12.0 .
13  fi
14 
15 #get the aarch64_darwin_x86 cross compiler
16 
17 if [ ! -d $base_path/$aarch64_darwin_x86 ]; then
18        mkdir -p $base_path/$aarch64_darwin_x86
19        git clone https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9.git -b master .
20 else
21      cd $base_path/$aarch64_darwin_x86
22      git clone https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9.git -b master .
23 fi

 

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

标签:

原文地址:http://www.cnblogs.com/sn-dnv-aps/p/4297110.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!