From ec055c4cf157a1dd30bfab4ff8f2b3497bb9da9a Mon Sep 17 00:00:00 2001 From: lizzie Date: Mon, 20 Oct 2025 03:45:54 +0000 Subject: [PATCH] [ci, meta] add missing license headers, fix grep on *BSD Signed-off-by: lizzie --- .ci/license-header.sh | 2 +- .ci/windows/build.sh | 0 CMakeModules/Findzstd.cmake | 3 +++ src/common/fs/file.cpp | 3 +++ src/video_core/host1x/codecs/decoder.cpp | 0 tools/generate-legacy-icons.sh | 3 +++ tools/translations/lupdate.sh | 3 +++ tools/translations/qt-source.sh | 3 +++ tools/translations/update-translations.sh | 3 +++ 9 files changed, 19 insertions(+), 1 deletion(-) mode change 100644 => 100755 .ci/windows/build.sh mode change 100755 => 100644 src/video_core/host1x/codecs/decoder.cpp diff --git a/.ci/license-header.sh b/.ci/license-header.sh index 986b364845..e78afb9857 100755 --- a/.ci/license-header.sh +++ b/.ci/license-header.sh @@ -79,7 +79,7 @@ check_header() { header="$(pcre_header "$begin")" - if ! echo "$content" | grep -Pzo "$header" > /dev/null; then + if ! echo "$content" | grep -zo "$header" > /dev/null; then # SRC_FILES is Kotlin/C++ # OTHER_FILES is sh, CMake case "$begin" in diff --git a/.ci/windows/build.sh b/.ci/windows/build.sh old mode 100644 new mode 100755 diff --git a/CMakeModules/Findzstd.cmake b/CMakeModules/Findzstd.cmake index 17efec2192..abcdbc2a3e 100644 --- a/CMakeModules/Findzstd.cmake +++ b/CMakeModules/Findzstd.cmake @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +# SPDX-License-Identifier: GPL-3.0-or-later + # SPDX-FileCopyrightText: 2022 yuzu Emulator Project # SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/common/fs/file.cpp b/src/common/fs/file.cpp index 722ba41949..8a3135e0ed 100644 --- a/src/common/fs/file.cpp +++ b/src/common/fs/file.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later diff --git a/src/video_core/host1x/codecs/decoder.cpp b/src/video_core/host1x/codecs/decoder.cpp old mode 100755 new mode 100644 diff --git a/tools/generate-legacy-icons.sh b/tools/generate-legacy-icons.sh index 9bf14e8093..8dad11470e 100755 --- a/tools/generate-legacy-icons.sh +++ b/tools/generate-legacy-icons.sh @@ -1,5 +1,8 @@ #!/bin/sh -e +# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +# SPDX-License-Identifier: GPL-3.0-or-later + # Generate SDK <26 icons for android # requires imagemagick, inkscape diff --git a/tools/translations/lupdate.sh b/tools/translations/lupdate.sh index c0b7dba9f6..0442d25d02 100755 --- a/tools/translations/lupdate.sh +++ b/tools/translations/lupdate.sh @@ -1,5 +1,8 @@ #!/bin/sh +# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +# SPDX-License-Identifier: GPL-3.0-or-later + for i in dist/languages/*.ts; do SRC=en_US TARGET=`head -n1 $i | awk -F 'language="' '{split($2, a, "\""); print a[1]}'` diff --git a/tools/translations/qt-source.sh b/tools/translations/qt-source.sh index c74bd0b091..3480070624 100755 --- a/tools/translations/qt-source.sh +++ b/tools/translations/qt-source.sh @@ -1,5 +1,8 @@ #!/bin/sh +# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +# SPDX-License-Identifier: GPL-3.0-or-later + SRC=en_US TARGET=en_US diff --git a/tools/translations/update-translations.sh b/tools/translations/update-translations.sh index e95b51da91..8bcd79142f 100755 --- a/tools/translations/update-translations.sh +++ b/tools/translations/update-translations.sh @@ -1,5 +1,8 @@ #!/bin/sh +# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +# SPDX-License-Identifier: GPL-3.0-or-later + command -v tx-cli && COMMAND=tx-cli command -v tx && COMMAND=tx