Merge "Add a script to extract gapps files from downloaded zip file." into froyo
This commit is contained in:
commit
3544f1f902
30
extract-gapps-files
Executable file
30
extract-gapps-files
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Extract gapps files from downloaded zip file.
|
||||||
|
#
|
||||||
|
# Just a replacement for get-google-files script.
|
||||||
|
#
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
cat << EOF
|
||||||
|
Usage: $0 <path-to-gapp-zip-file>
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ $# -lt 1 ]; then
|
||||||
|
usage
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
GAPPS="$1"
|
||||||
|
|
||||||
|
cd `dirname $0`
|
||||||
|
|
||||||
|
mkdir -p proprietary
|
||||||
|
mkdir tmp
|
||||||
|
|
||||||
|
unzip -q -o -d tmp $GAPPS
|
||||||
|
|
||||||
|
find tmp/system -type f -exec mv -v -f {} proprietary/ \;
|
||||||
|
|
||||||
|
rm -rf tmp
|
Loading…
Reference in New Issue
Block a user