forked from alibaba/atlas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UpdateAndroidSource.sh
executable file
·56 lines (50 loc) · 1.2 KB
/
UpdateAndroidSource.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! /bin/bash
SRCROOT=/Develop/android/source/android-last
DESROOT=.
array=( \
bionic/libc/include \
external/compiler-rt \
external/expat \
external/libcxx \
external/libcxxabi \
external/libpng \
external/safe-iop \
external/zlib \
frameworks/base/include \
frameworks/base/libs/androidfw \
frameworks/base/tools/aapt \
frameworks/native/include \
libnativehelper \
prebuilts/clang/darwin-x86 \
prebuilts/clang/host \
prebuilts/gcc \
sdk/build \
system/core/base \
system/core/include \
system/core/libcutils \
system/core/liblog \
system/core/libutils \
system/core/libziparchive \
)
for var in ${array[@]};do
rsync -aP --delete $SRCROOT/$var/ $DESROOT/$var/ \
--exclude .git \
--exclude test \
--exclude tests \
--exclude testdata \
--exclude examples \
--exclude doc \
--exclude www \
--exclude unittests \
--exclude common \
--exclude linux-x86/mips \
--exclude linux-x86/arm \
--exclude linux-x86/aarch64 \
--exclude linux-x86/x86 \
--exclude linux-x86/host/x86_64-linux-glibc2.11-4.8 \
--exclude linux-x86/host/x86_64-w64-mingw32-4.8 \
--exclude darwin-x86/mips \
--exclude darwin-x86/arm \
--exclude darwin-x86/aarch64 \
--exclude darwin-x86/x86
done