Permalink
Browse files

Add a script to extract gapps files from downloaded zip file.

Just a replacement for get-google-files script.

Change-Id: I9869e0d739251dddda69340d654a0fe1cad47cce
  • Loading branch information...
1 parent 5234534 commit 60367b4dab4e87858be3afd37ac06892f091a25e @yangh yangh committed Oct 29, 2010
Showing with 30 additions and 0 deletions.
  1. +30 −0 extract-gapps-files
View
@@ -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

0 comments on commit 60367b4

Please sign in to comment.