2018-09-20 07:31:15 -07:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2020-12-28 02:34:04 -08:00
|
|
|
# Copyright (C) 2016 The CyanogenMod Project
|
|
|
|
# Copyright (C) 2017-2020 The LineageOS Project
|
2018-09-20 07:31:15 -07:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2019-03-22 15:45:03 -07:00
|
|
|
# If we're being sourced by the common script that we called,
|
|
|
|
# stop right here. No need to go down the rabbit hole.
|
|
|
|
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
2018-09-20 07:31:15 -07:00
|
|
|
set -e
|
|
|
|
|
|
|
|
export DEVICE=beryllium
|
|
|
|
export DEVICE_COMMON=sdm845-common
|
|
|
|
export VENDOR=xiaomi
|
|
|
|
|
2019-03-22 15:45:03 -07:00
|
|
|
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"
|