diff options
author | Cosme Domínguez Díaz <cosme.ddiaz@gmail.com> | 2018-02-25 03:08:20 +0100 |
---|---|---|
committer | Cosme Domínguez Díaz <cosme.ddiaz@gmail.com> | 2018-02-25 19:38:31 +0100 |
commit | 4736ce5375bb696b197b5f0004016fb950c3897d (patch) | |
tree | e4fb55f8dcbebde67dcabe691211e575161c9fa7 /extract-files.sh | |
parent | fb208c03e446a4630baeecf86e4d38dcf7f50205 (diff) |
Update extract-files.sh and proprietary-files.txt.
Diffstat (limited to 'extract-files.sh')
-rwxr-xr-x[-rw-r--r--] | extract-files.sh | 50 |
1 files changed, 2 insertions, 48 deletions
diff --git a/extract-files.sh b/extract-files.sh index c5e540e..33d188c 100644..100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -20,55 +20,9 @@ set -e # Required! export DEVICE=z2_plus +export DEVICE_COMMON=msm8996-common export VENDOR=zuk export DEVICE_BRINGUP_YEAR=2016 -# Load extract_utils and do some sanity checks -MY_DIR="${BASH_SOURCE%/*}" -if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi - -LINEAGE_ROOT="$MY_DIR"/../../.. - -HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh -if [ ! -f "$HELPER" ]; then - echo "Unable to find helper script at $HELPER" - exit 1 -fi -. "$HELPER" - -# Default to sanitizing the vendor folder before extraction -CLEAN_VENDOR=true - -while [ "$1" != "" ]; do - case $1 in - -p | --path ) shift - SRC=$1 - ;; - -s | --section ) shift - SECTION=$1 - CLEAN_VENDOR=false - ;; - -n | --no-cleanup ) CLEAN_VENDOR=false - ;; - esac - shift -done - -if [ -z "$SRC" ]; then - SRC=adb -fi - -# Initialize the helper for common device -setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" true "$CLEAN_VENDOR" - -extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION" - -if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then - # Reinitialize the helper for device - setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false "$CLEAN_VENDOR" - - extract "$MY_DIR"/../$DEVICE/proprietary-files.txt "$SRC" "$SECTION" -fi - -"$MY_DIR"/setup-makefiles.sh +./../../$VENDOR/$DEVICE_COMMON/extract-files.sh "$@" |