-A, --with-asan Also, push the libasan package to device.
-c, --corpus CORPUS_DIR Also, push the seed corpus files to device
from the specified directory.
+ -i, --install-deps Install missing dependencies.
-r, --root Push target with root access rights.
-s, --serial SERIAL_NUMBER Send all sdb commands to device with specified
serial number.
# GLOBAL OPTIONS PARSING
########################################################
+INSTALL_DEPS=0
+
while [[ ${1} = -* ]]; do
case ${1} in
'-h'|'--help')
CORPUS_DIR="${2}"
shift 2
;;
+ '-i'|'--install-deps')
+ INSTALL_DEPS=1
+ shift
+ ;;
'-r'|'--root')
ROOT=1
shift
exit 1
fi
+# check and install, if needed, necessary dependencies
+echo "Checking dependencies..."
+check_and_install_deps "${INSTALL_DEPS}" 'base' 'cpio'
+
# push debug rpms
printf "\nPushing debug rpm packages to device...\n"