9 for FILE
in `egrep -v '(^#|^$)' $1`; do
10 OLDIFS
=$IFS IFS
=":" PARSING_ARRAY
=($FILE) IFS
=$OLDIFS
11 FILE
=`echo ${PARSING_ARRAY[0]} | sed -e "s/^-//g"`
12 DEST
=${PARSING_ARRAY[1]}
17 if [ ! -d $2/$DIR ]; then
20 if [ "$SRC" = "adb" ]; then
22 adb pull
/system
/$DEST $2/$DEST
23 # if file does not exist try OEM target
24 if [ "$?" != "0" ]; then
25 adb pull
/system
/$FILE $2/$DEST
28 cp $SRC/system
/$FILE $2/$DEST
29 # if file dot not exist try destination
32 cp $SRC/system
/$DEST $2/$DEST
44 echo "$0: bad number of arguments"
46 echo "usage: $0 [PATH_TO_EXPANDED_ROM]"
48 echo "If PATH_TO_EXPANDED_ROM is not specified, blobs will be extracted from"
49 echo "the device using adb pull."
54 DEVBASE
=..
/..
/..
/vendor
/$VENDOR/$DEVICE/proprietary
57 extract ..
/..
/$VENDOR/$DEVICE/proprietary-files.txt
$DEVBASE