Yang Hong | 44ff665 | 2010-10-29 23:49:13 +0800 | [diff] [blame] | 1 | #!/bin/bash |
2 | # | ||||
3 | # Extract gapps files from downloaded zip file. | ||||
4 | # | ||||
5 | # Just a replacement for get-google-files script. | ||||
6 | # | ||||
7 | |||||
8 | usage() { | ||||
9 | cat << EOF | ||||
10 | Usage: $0 <path-to-gapp-zip-file> | ||||
11 | EOF | ||||
12 | } | ||||
13 | |||||
14 | if [ $# -lt 1 ]; then | ||||
15 | usage | ||||
16 | exit 1 | ||||
17 | fi | ||||
18 | |||||
19 | GAPPS="$1" | ||||
20 | |||||
21 | cd `dirname $0` | ||||
22 | |||||
23 | mkdir -p proprietary | ||||
24 | mkdir tmp | ||||
25 | |||||
26 | unzip -q -o -d tmp $GAPPS | ||||
27 | |||||
28 | find tmp/system -type f -exec mv -v -f {} proprietary/ \; | ||||
29 | |||||
30 | rm -rf tmp |