forked from andixlm/android_build-tools
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpatch
More file actions
executable file
·31 lines (26 loc) · 779 Bytes
/
Copy pathpatch
File metadata and controls
executable file
·31 lines (26 loc) · 779 Bytes
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
#!/bin/bash
cd ..
COUNT=0
CURRENT_DIR="$PWD"
PD="build_tools/patches"
PATCHES=(
'frameworks/av frameworks_av.patch'
'frameworks/base frameworks_base.patch'
'frameworks/native frameworks_native.patch'
'frameworks/opt/telephony frameworks_opt_telephony.patch'
'hardware/broadcom/libbt hardware_broadcom_libbt.patch'
'packages/inputmethods/LatinIME packages_inputmethods_LatinIME.patch'
'packages/services/Telephony packages_services_Telephony.patch'
'system/core system_core.patch'
)
while [ "x${PATCHES[COUNT]}" != "x" ]
do
CURRENT="${PATCHES[COUNT]}"
FOLDER=`echo "$CURRENT" | awk '{print $1}'`
PATCH=`echo "$CURRENT" | awk '{print $2}'`
cd "$FOLDER"
echo Patching "$FOLDER" ...
git apply "$CURRENT_DIR/$PD/$PATCH"
cd "$CURRENT_DIR"
COUNT=$(($COUNT + 1))
done