android_device_asus_deb/extract-files.sh
Scott 0c741de590 deb: Bringup on cm-10.2
Proposed bringup for deb (Nexus 7 2013 LTE) on cm-10.2.
Contains improvements to flo as of this commit.
I would like to create a common repo or somehow merge certain
pieces together (init improvements for example) but I think
we should have an updated "official" deb repo first to start
that work.

PS2: Removed apns-conf.xml as CM provides its own
PS3: Update fingerprint to match official 4.3.1 JLS36I

Change-Id: I77ee8f419def673014a086d8338e5c947373b556
2013-10-14 10:49:52 -05:00

40 lines
778 B
Bash
Executable file

#!/bin/sh
set -e
VENDOR=asus
DEVICE=deb
if [ $# -eq 0 ]; then
SRC=adb
else
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/$VENDOR/$DEVICE/proprietary
rm -rf $BASE/*
for FILE in `cat proprietary-blobs.txt | grep -v ^# | grep -v ^$ | sed -e 's#^/system/##g'`; do
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