From d6c5eba1f9269b49b7b4a007026d96e1be3f90d2 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Mon, 3 Oct 2011 22:34:49 +0100 Subject: [PATCH] leo: removed leoupdate Change-Id: I96fca75ffda26a7795ccf820c4c837980c444edd --- tools/leoupdate | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100755 tools/leoupdate diff --git a/tools/leoupdate b/tools/leoupdate deleted file mode 100755 index 5e2ae104..00000000 --- a/tools/leoupdate +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -export LOC="$PWD/out/target/product/leo" - -mkdir -p "$LOC"/temp - -cd "$LOC"/temp -echo "extract update.zip" -unzip -o -qq "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$USER.zip - -echo "Making Leo Compatible Update script" -cd "$LOC" -cd "$LOC"/temp/META-INF/com/google/android -echo 'mount("yaffs2", "MTD", "boot", "/boot");' >> temp -echo 'package_extract_dir("boot", "/boot");' >> temp -grep -vw assert updater-script >> temp -rm -rf updater-script -grep -vw boot.img temp > updater-script -rm -rf temp -echo Zipping Package -cd "$LOC"/temp -rm -rf "$LOC"/temp/boot.img -rm -rf "$LOC"/temp/boot -cp -a "$LOC"/boot "$LOC"/temp/boot -if [[ ! -e "$LOC"/temp/boot/initrd.gz ]] ; then - cp -a "$LOC"/ramdisk.img "$LOC"/temp/boot/initrd.gz -fi -rm -rf "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$USER.zip -zip -9yr "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$USER.zip * > /dev/null -cd "$LOC" - -echo Cleanup... -rm -rf "$LOC"/temp - -echo done