diff --git a/extract-files.sh b/extract-files.sh index f4ab3c7..c4a3f60 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -1,24 +1,21 @@ #!/bin/bash # -# Copyright (C) 2019 The LineageOS Project +# Copyright (C) 2016 The CyanogenMod Project +# Copyright (C) 2017-2020 The LineageOS Project # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# SPDX-License-Identifier: Apache-2.0 # -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. + +# 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 set -e export DEVICE=PL2 export DEVICE_COMMON=sdm660-common export VENDOR=nokia -export DEVICE_BRINGUP_YEAR=2019 -./../../$VENDOR/$DEVICE_COMMON/extract-files.sh $@ +"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 55d2b4b..6e6a94a 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -1,25 +1,15 @@ #!/bin/bash # -# Copyright (C) 2019 The LineageOS Project +# Copyright (C) 2016 The CyanogenMod Project +# Copyright (C) 2017-2020 The LineageOS Project # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# SPDX-License-Identifier: Apache-2.0 # -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. set -e -# Required! export DEVICE=PL2 export DEVICE_COMMON=sdm660-common export VENDOR=nokia -export DEVICE_BRINGUP_YEAR=2019 -./../../$VENDOR/$DEVICE_COMMON/setup-makefiles.sh $@ +"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"