From ab7aca0d40fb1a2c875d494b7ca78fdcfcff1758 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Tue, 17 Sep 2024 15:59:01 +0800 Subject: [PATCH] dm3q: Sync extract scripts with templates Change-Id: I98a36854c5a0c0390592911bb2558b34eff77efc --- extract-files.sh | 9 ++++++--- setup-makefiles.sh | 11 ++++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/extract-files.sh b/extract-files.sh index 0664255..f37ce89 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -1,8 +1,7 @@ #!/bin/bash # -# Copyright (C) 2016 The CyanogenMod Project -# Copyright (C) 2017-2020 The LineageOS Project -# +# SPDX-FileCopyrightText: 2016 The CyanogenMod Project +# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project # SPDX-License-Identifier: Apache-2.0 # @@ -11,6 +10,10 @@ function blob_fixup() { esac } +function blob_fixup_dry() { + blob_fixup "$1" "" +} + # 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 diff --git a/setup-makefiles.sh b/setup-makefiles.sh index ab9d37f..3c9bb5d 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -1,11 +1,16 @@ #!/bin/bash # -# Copyright (C) 2016 The CyanogenMod Project -# Copyright (C) 2017-2020 The LineageOS Project -# +# SPDX-FileCopyrightText: 2016 The CyanogenMod Project +# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project # SPDX-License-Identifier: Apache-2.0 # +# 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=dm3q