summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Yi <byi@google.com>2016-08-31 19:18:42 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-08-31 19:18:42 +0000
commitc7b7fcc9fb95b7be225b087434c2e71a2b65f914 (patch)
tree652cb247a8ee934bab2189ae57bf5eafa99fd11e
parent325c9677e92675a3e7ce2ef896f775c3d9ee604c (diff)
parent70c896dd14d55fbbe316b1ed6a50596620c6da41 (diff)
downloaddevice_common-c7b7fcc9fb95b7be225b087434c2e71a2b65f914.tar.gz
device_common-c7b7fcc9fb95b7be225b087434c2e71a2b65f914.tar.bz2
device_common-c7b7fcc9fb95b7be225b087434c2e71a2b65f914.zip
Switch tar to zip for factory images am: d68beabe33 am: 18257fd91e am: 8a07b299ca am: f05bd98958 am: 9df1bab6ac
am: 70c896dd14 Change-Id: Iac1fb53c13bc64a7e6b96e8a6141cc808fb57abb
-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