#!/bin/sh VENDOR=motorola DEVICE=otus BASE=../../../vendor/$VENDOR/$DEVICE/proprietary while getopts ":nh" options do case $options in n ) NC=1 ;; h ) echo "Usage: `basename $0` [OPTIONS] " echo " -n No clenup" echo " -h Show this help" exit ;; * ) ;; esac done if [ "x$NC" != "x1" ]; then rm -rf $BASE/* fi for FILE in `cat proprietary-blobs.txt | grep -v ^# | grep -v ^$`; do DIR=`dirname $FILE` if [ ! -d $BASE/$DIR ]; then mkdir -p $BASE/$DIR fi adb pull /system/$FILE $BASE/$FILE done ./setup-makefiles.sh