From 0c8791e8013947d60c113bc43eae8ac9188188da Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Mon, 28 Dec 2020 10:34:04 +0000 Subject: [PATCH] PL2: Align with extraction-utils templates Change-Id: Ifbf18f79a1d0f173cb5b83bdf0178db2a5f1373e --- extract-files.sh | 23 ++++++++++------------- setup-makefiles.sh | 18 ++++-------------- 2 files changed, 14 insertions(+), 27 deletions(-) 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" "$@"