From 48b5c971e167eff499336f04efe16287758cfa0c Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Sun, 23 Dec 2012 12:44:07 +0530 Subject: [PATCH] get rid of otapackage tools Change-Id: I19e2e2f6b4c10a42468fb3b68a0b4e25312947ac --- tools/functions | 15 --------------- tools/squisher | 51 ------------------------------------------------- 2 files changed, 66 deletions(-) delete mode 100644 tools/functions delete mode 100755 tools/squisher diff --git a/tools/functions b/tools/functions deleted file mode 100644 index 30ef0052..00000000 --- a/tools/functions +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -# Common functions for CM otatools -# -# cdesai - -if [ ! "$BUILD_WITH_COLORS" = "0" ]; -then -CL_RED="\033[31m" -CL_GRN="\033[32m" -CL_YLW="\033[33m" -CL_BLU="\033[34m" -CL_MAG="\033[35m" -CL_CYN="\033[36m" -CL_RST="\033[0m" -fi diff --git a/tools/squisher b/tools/squisher deleted file mode 100755 index e3b82514..00000000 --- a/tools/squisher +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# Squish a CM otapackage for distribution -# cyanogen -# - -. $ANDROID_BUILD_TOP/vendor/cm/tools/functions - -OUT_TARGET_HOST=`uname -a | grep Darwin` -if [ -z "$OUT_TARGET_HOST" ] -then - OUT_TARGET_HOST=linux-x86 - MD5=md5sum - XARGS="xargs --max-args=1 --max-procs `grep 'processor' /proc/cpuinfo|wc -l`" - SED=sed -else - OUT_TARGET_HOST=darwin-x86 - MD5=md5 - XARGS="xargs -n 1 -P `sysctl hw.ncpu | awk '{print $2}'`" - SED=gsed -fi - -if [ -z "$OUT" -o ! -d "$OUT" ]; then - echo -e $CL_RED"ERROR: $0 only works with a full build environment. $OUT should exist."$CL_RST - exit 1 -fi - -if [ ! -f "$OTAPACKAGE" ]; then - echo -e $CL_RED"$OTAPACKAGE doesn't exist!"$CL_RST; - exit 1 -fi - -# Determine what to name the new package -MODVERSION=`sed -n -e'/ro\.cm\.version/s/^.*=//p' $OUT/system/build.prop` -echo -e $CL_CYN"MODVERSION: $MODVERSION"$CL_RST -OUTFILE=$OUT/cm-$MODVERSION.zip - -ln -f $OTAPACKAGE $OUTFILE - -# Create a md5 checksum image of the repacked package -( -img=`basename $OUTFILE` -cd `dirname $OUTFILE` -$MD5 $img >$img.md5sum -echo -echo -e $CL_GRN"Package complete: $OUTFILE"$CL_RST -echo -e $CL_GRN"md5: $(cat $img.md5sum | awk '{ print $1 }')"$CL_RST -echo -) - -exit 0