Taken from =>

https://raw.github.com/Kayant/android_build/jb/tools/releasetools/ota_from_target_files