Skip to content

Commit

Permalink
d2: move extractfiles to common
Browse files Browse the repository at this point in the history
Change-Id: Ia7ae12913f5a37ad470dd0a9064d418af0eedb05
  • Loading branch information
shareefalis committed Aug 29, 2012
1 parent 6035925 commit 153badd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 140 deletions.
49 changes: 3 additions & 46 deletions extract-files.sh
100644 → 100755
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,49 +2,6 @@


set -e set -e


if [ $# -eq 0 ]; then export DEVICE=d2usc
SRC=adb export VENDOR=samsung
else ./../d2-common/extract-files.sh
if [ $# -eq 1 ]; then
SRC=$1
else
echo "$0: bad number of arguments"
echo ""
echo "usage: $0 [PATH_TO_EXPANDED_ROM]"
echo ""
echo "If PATH_TO_EXPANDED_ROM is not specified, blobs will be extracted from"
echo "the device using adb pull."
exit 1
fi
fi

BASE=../../../vendor/samsung/d2usc/proprietary
rm -rf $BASE/*

for FILE in `egrep -v '(^#|^$)' device-proprietary-files.txt`; do
echo "Extracting /system/$FILE ..."
DIR=`dirname $FILE`
if [ ! -d $BASE/$DIR ]; then
mkdir -p $BASE/$DIR
fi
if [ "$SRC" = "adb" ]; then
adb pull /system/$FILE $BASE/$FILE
else
cp $SRC/system/$FILE $BASE/$FILE
fi
done

for FILE in `egrep -v '(^#|^$)' ../d2-common/common-proprietary-files.txt`; do
echo "Extracting /system/$FILE ..."
DIR=`dirname $FILE`
if [ ! -d $BASE/$DIR ]; then
mkdir -p $BASE/$DIR
fi
if [ "$SRC" = "adb" ]; then
adb pull /system/$FILE $BASE/$FILE
else
cp $SRC/system/$FILE $BASE/$FILE
fi
done

./setup-makefiles.sh
94 changes: 0 additions & 94 deletions setup-makefiles.sh

This file was deleted.

0 comments on commit 153badd

Please sign in to comment.