summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Yi <byi@google.com>2016-08-31 18:57:36 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-08-31 18:57:36 +0000
commit18257fd91edfd5db6b9b1a3d165dd82286ef3b3a (patch)
tree3a15d07a77d9c7e4a85ed68ae0b76222f5e1219d
parent4b636830cd859e73a34ae1901e4ab15b4c3fd284 (diff)
parentd68beabe330c07496efb0af7e8cb9e314634d2fc (diff)
downloaddevice_common-18257fd91edfd5db6b9b1a3d165dd82286ef3b3a.tar.gz
device_common-18257fd91edfd5db6b9b1a3d165dd82286ef3b3a.tar.bz2
device_common-18257fd91edfd5db6b9b1a3d165dd82286ef3b3a.zip
Switch tar to zip for factory images
am: d68beabe33 Change-Id: I940ea7dc451003ed6aa5bd6106c1ba61d8f2aff0
-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 b8d6707..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-$(sha256sum < $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