sanders: Fix script path in these files
Signed-off-by: Jorge Lucas <jorgelucas.sd@gmail.com>
This commit is contained in:
@@ -24,9 +24,9 @@ VENDOR=motorola
|
||||
MY_DIR="${BASH_SOURCE%/*}"
|
||||
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
|
||||
|
||||
CM_ROOT="$MY_DIR"/../../..
|
||||
AOSP_ROOT="$MY_DIR"/../../..
|
||||
|
||||
HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh
|
||||
HELPER="$AOSP_ROOT"/vendor/aosp/build/tools/extract_utils.sh
|
||||
if [ ! -f "$HELPER" ]; then
|
||||
echo "Unable to find helper script at $HELPER"
|
||||
exit 1
|
||||
@@ -50,7 +50,7 @@ else
|
||||
fi
|
||||
|
||||
# Initialize the helper
|
||||
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT"
|
||||
setup_vendor "$DEVICE" "$VENDOR" "$AOSP_ROOT"
|
||||
|
||||
extract "$MY_DIR"/proprietary-files.txt "$SRC"
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@ VENDOR=motorola
|
||||
MY_DIR="${BASH_SOURCE%/*}"
|
||||
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
|
||||
|
||||
CM_ROOT="$MY_DIR"/../../..
|
||||
AOSP_ROOT="$MY_DIR"/../../..
|
||||
|
||||
HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh
|
||||
HELPER="$AOSP_ROOT"/vendor/aosp/build/tools/extract_utils.sh
|
||||
if [ ! -f "$HELPER" ]; then
|
||||
echo "Unable to find helper script at $HELPER"
|
||||
exit 1
|
||||
@@ -35,7 +35,7 @@ fi
|
||||
. "$HELPER"
|
||||
|
||||
# Initialize the helper
|
||||
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT"
|
||||
setup_vendor "$DEVICE" "$VENDOR" "$AOSP_ROOT"
|
||||
|
||||
# Copyright headers and guards
|
||||
write_headers
|
||||
|
||||
Reference in New Issue
Block a user