wade: Sync extract scripts with templates
authorMichael Bestas <mkbestas@lineageos.org>
Tue, 27 Aug 2024 19:51:30 +0000 (22:51 +0300)
committerNolen Johnson <johnsonnolen@gmail.com>
Thu, 5 Sep 2024 05:22:43 +0000 (01:22 -0400)
Change-Id: I98a36854c5a0c0390592911bb2558b34eff77efc

extract-files.sh
setup-makefiles.sh

index a3b02831e276043e3179d894bb41276556965442..9c25cafa45f97c3c7a6d259f514d926486bbcfd1 100755 (executable)
@@ -1,7 +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
 #
index e294f6c2c04934816dd217ab078f4568e412d257..e99bff54cd7ec7ac92f7c167bcec46da1f715ea7 100755 (executable)
@@ -1,11 +1,17 @@
 #!/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=wade