diff options
author | Cosme Domínguez Díaz <cosme.ddiaz@gmail.com> | 2018-03-06 20:53:55 +0100 |
---|---|---|
committer | Cosme Domínguez Díaz <cosme.ddiaz@gmail.com> | 2018-03-06 20:53:55 +0100 |
commit | 4a0b9fdf1f28c2ea587412375b20850ffba5189a (patch) | |
tree | e304e88c7088c3e983e7bd5fdb4bb61baa0a3f6a /extract-files.sh | |
parent | 95ab79ae2c595e4c47c21e9b4dffa762ae048b20 (diff) | |
parent | 7d10229e40e095bf46bebea08c5cbb0c1f887928 (diff) |
Merge branch 'staging/treble' into lineage-15.1
Diffstat (limited to 'extract-files.sh')
-rwxr-xr-x[-rw-r--r--] | extract-files.sh | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/extract-files.sh b/extract-files.sh index c5e540e..78747c0 100644..100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -18,12 +18,6 @@ set -e -# Required! -export DEVICE=z2_plus -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 @@ -42,14 +36,13 @@ CLEAN_VENDOR=true while [ "$1" != "" ]; do case $1 in - -p | --path ) shift - SRC=$1 + -n | --no-cleanup ) CLEAN_VENDOR=false ;; -s | --section ) shift SECTION=$1 CLEAN_VENDOR=false ;; - -n | --no-cleanup ) CLEAN_VENDOR=false + * ) SRC=$1 ;; esac shift @@ -60,7 +53,7 @@ if [ -z "$SRC" ]; then fi # Initialize the helper for common device -setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" true "$CLEAN_VENDOR" +setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true "$CLEAN_VENDOR" extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION" |