recoveryzip: Fix build of recoveryzip

The recoveryzip target was failing due to the change in the
handling of OUT_DIR. This removes the script's attempts to
set the path itself and uses the common variables instead.

Change-Id: I2a1334e940881005b9d3445b387858edf6da264a
Run clean steps in only given paths when using mm/mmm

To speed up mm/mmm start time.
At the same time, we should copy over the other clean steps.

(cherry-pick of 6ea58cb3dc564ce112b28f1a7c6936317168d931.)

Bug: 7186768
Change-Id: I158b0d7e4ecaa773ec3a336cd326e27ee8c26a88
dopush: improvements

- use $OUT instead of replacing device name with a new line
  and then "tail"ing it.
- adb shell stop/start if file is SystemUI.apk or framework/*
- and some cleanup.

Change-Id: I49278406dc53285b4919f7d41116ad849ec38250
cleanbuild: add *.zip.md5sum to installclean_files

Change-Id: I4b68bb9a8d421a54b008c5318fa82ed230bd6441
Revert "build: Use newline at the end of echo to apkcerts file"

This reverts commit 99430f74c8b2344fbcb96b2db51893ecb65b7c1f.
Split to multiple bash commands.

This can fix the error "/bin/bash: Argument list too long", if we get a
really long apk list.
Bug tracker Link: http://code.google.com/p/android/issues/detail?id=38937

Change-Id: Ic6318465a0413ba9ac5afe2c4974ebb3abf59b01
Remove duplicate src:dest pairs in PRODUCT_COPY_FILES

Before setting up the rules.

Change-Id: Ifedbc0e988895a899cae315dc730a152bae91ae2
unpackbootimg: add a target specifically for unpackbootimg.
for some reason, and I am guessing this is a bug in the Android build, I can no longer run the following:
make -j32 out/host/darwin-x86/bin/unpackbootimg

It works if the build has been built, but not if it is clean. Somewhere within the bowels of AOSP
something broken in 4.1.2.

Change-Id: I4f8c434f3fce9ddaee4f54febba02efac07a31a3
fix sdk target with absolute OUT_DIR

Add / to atree's search path.

since I459a3b13 OUT_DIR is absolute. atree uses these variables and
due to "-I ." tries to resolve these paths as relative paths.

Change-Id: Ic9fbc84acdd9f438dfc813f6496e2c5e0d761976
build: Add "installrecovery" command

 * Similar to "installboot", add an "installrecovery" command which
   writes the recovery image to the correct partition of a running
   device.

Change-Id: I1dcca44fd0d8afa08ece9e99cd914547acb99c83
Fix SmokeTest

Change-Id: Ia53766b62d3777de49eaaac122042b99e6f1a3f7
omnom (brunch + eat) command

Change-Id: I524e5a1450de7ea9c93512eebcb10f320e68fa82
Merge remote-tracking branch 'cyanogen/jellybean' into jellybean

* cyanogen/jellybean:
  omnom (brunch + eat) command
  Fix SmokeTest
  build: Add "installrecovery" command
  fix sdk target with absolute OUT_DIR
  unpackbootimg: add a target specifically for unpackbootimg. for some reason, and I am guessing this is a bug in the Android build, I can no longer run the following: make -j32 out/host/darwin-x86/bin/unpackbootimg
  Remove duplicate src:dest pairs in PRODUCT_COPY_FILES
  Split to multiple bash commands.
  Revert "build: Use newline at the end of echo to apkcerts file"
  cleanbuild: add *.zip.md5sum to installclean_files
  dopush: improvements
  Run clean steps in only given paths when using mm/mmm
  recoveryzip: Fix build of recoveryzip