JDQ39B
JDQ39C
JDQ39D
JDQ39E
Check bash version instead of OS for bash completion

The bash completion script requires bash 4.0

Change-Id: Id81a42585b1d2cb568cb1b8f602f2bb447bef214
Consolidate bash version checks

There were two checks for bash version, the 2nd was superfluous; this
patch removes the duplicate checks, and shifts the bash version check to
being back after the "are we in bash" check.

Change-Id: I57ff8c1fedce80f739c06643d2976d2c1465db1b
envsetup: Make installboot work in recovery mode too

 * Needs a change to adb to allow waiting for recovery

Change-Id: Ia90645513f46bcb5f20b7c74c55ef15842710d3d
Merge tag 'android-4.2.2_r1.2' of https://android.googlesource.com/platform/build into cm-10.1

Android 4.2.2 release 1.2

# gpg: Signature made Wed 17 Apr 2013 12:58:50 PM PDT using DSA key ID 9AB10E78
# gpg: Can't check signature: public key not found
Revert "bacon: name the package correctly"

This reverts commit 724feedbd9e668e239e827b974437da85c140313.

This breaks package naming, since a build.prop from a previous build
can be present before the cleanup rules apply, and this is variable
is generated before the build actually begins.
Most notably, this happens in jenkins with consecutive builds, even if
from different projects and tags.
Merge remote-tracking branch 'upstream/cm-10.1' into cm-10.1