summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Yi <byi@google.com>2016-09-09 18:24:02 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-09-09 18:24:03 +0000
commiteb68cdcc6cb0125e33dc964801c23c768a5c87dc (patch)
treecc2a466ce0504532b871c55568814cece2d8aafc
parent762617a12642c9de3e3ce66b26f6c8b122c06e0f (diff)
parent52dc95d00b936f5ae9a999787a46dcc0be55d3c1 (diff)
downloaddevice_common-eb68cdcc6cb0125e33dc964801c23c768a5c87dc.tar.gz
device_common-eb68cdcc6cb0125e33dc964801c23c768a5c87dc.tar.bz2
device_common-eb68cdcc6cb0125e33dc964801c23c768a5c87dc.zip
Merge "Switch tar to zip for factory images"android-n-mr1-preview-2android-n-mr1-preview-1
-rw-r--r--generate-factory-images-common.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/generate-factory-images-common.sh b/generate-factory-images-common.sh
index 63ab260..dc1bfcd 100644
--- a/generate-factory-images-common.sh
+++ b/generate-factory-images-common.sh
@@ -293,8 +293,8 @@ fi
chmod a+x tmp/$PRODUCT-$VERSION/flash-base.sh
# Create the distributable package
-(cd tmp ; tar zcvf ../$PRODUCT-$VERSION-factory.tgz $PRODUCT-$VERSION)
-mv $PRODUCT-$VERSION-factory.tgz $PRODUCT-$VERSION-factory-$(sha1sum < $PRODUCT-$VERSION-factory.tgz | cut -b -8).tgz
+(cd tmp ; zip -r ../$PRODUCT-$VERSION-factory.zip $PRODUCT-$VERSION)
+mv $PRODUCT-$VERSION-factory.zip $PRODUCT-$VERSION-factory-$(sha256sum < $PRODUCT-$VERSION-factory.zip | cut -b -8).zip
# Clean up
rm -rf tmp