summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2011-06-28 08:03:26 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-28 08:03:26 -0700
commitdfa07285e2a8f0616e911e8223ec30179838cbc7 (patch)
tree6b74464bc9fe19d6620d897e052b2c335f209ad1
parent823027db158af200c72693c7631ff88f2c8ecdde (diff)
parent695ebe6734909337bdbae29b2e3c3fbdd67703f3 (diff)
downloaddevice_samsung_crespo-dfa07285e2a8f0616e911e8223ec30179838cbc7.zip
device_samsung_crespo-dfa07285e2a8f0616e911e8223ec30179838cbc7.tar.gz
device_samsung_crespo-dfa07285e2a8f0616e911e8223ec30179838cbc7.tar.bz2
Merge "Deal with apks, if necessary"
-rwxr-xr-xself-extractors/generate-packages.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/self-extractors/generate-packages.sh b/self-extractors/generate-packages.sh
index 4d9ffc2..2913cbb 100755
--- a/self-extractors/generate-packages.sh
+++ b/self-extractors/generate-packages.sh
@@ -94,6 +94,14 @@ do
then
chmod a+x $FILEDIR/$(basename $ONE_FILE) || echo \ \ \ \ Error chmoding $ONE_FILE
fi
+ if test $(echo $ONE_FILE | grep \\.apk\$ | wc -l) = 1
+ then
+ echo \ \ \ \ Splitting $ONE_FILE
+ mkdir -p $FILEDIR/$(basename $ONE_FILE).parts || echo \ \ \ \ Error making parts dir for $ONE_FILE
+ unzip $FILEDIR/$(basename $ONE_FILE) -d $FILEDIR/$(basename $ONE_FILE).parts > /dev/null || echo \ \ \ \ Error unzipping $ONE_FILE
+ rm $FILEDIR/$(basename $ONE_FILE) || echo \ \ \ \ Error removing original $ONE_FILE
+ rm -rf $FILEDIR/$(basename $ONE_FILE).parts/META-INF || echo \ \ \ \ Error removing META-INF for $ONE_FILE
+ fi
done
echo \ \ Setting up $COMPANY-specific makefiles
cp -R $COMPANY/staging/* tmp/vendor/$COMPANY/$DEVICE || echo \ \ \ \ Error copying makefiles