From d7f3e42a68bc5ff31f77bf1b8badc58c20b050bb Mon Sep 17 00:00:00 2001 From: crueter Date: Sun, 19 Oct 2025 12:25:49 -0400 Subject: [PATCH] nuke leftovers and add more externals Signed-off-by: crueter --- .ci/license-header.rb | 47 ------------------------------------- .ci/license-header.sh | 4 ++-- .ci/license/header-hash.txt | 2 -- .ci/license/header.txt | 2 -- 4 files changed, 2 insertions(+), 53 deletions(-) delete mode 100644 .ci/license-header.rb delete mode 100644 .ci/license/header-hash.txt delete mode 100644 .ci/license/header.txt diff --git a/.ci/license-header.rb b/.ci/license-header.rb deleted file mode 100644 index dda5522026..0000000000 --- a/.ci/license-header.rb +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/ruby -# frozen_string_literal: true - -license_header = <<~EOF - // SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project - // SPDX-License-Identifier: GPL-3.0-or-later - EOF - -print 'Getting branch changes...' -branch_name = `git rev-parse --abbrev-ref HEAD`.chomp -branch_commits = `git log #{branch_name} --not master --pretty=format:"%h"`.split("\n") -branch_commit_range = "#{branch_commits[-1]}^..#{branch_commits[0]}" -branch_changed_files = `git diff-tree --no-commit-id --name-only #{branch_commit_range} -r`.split("\n") -puts 'done' - -print 'Checking files...' -issue_files = [] -branch_changed_files.each do |file_name| - if file_name.end_with?('.cpp', '.h', '.kt', '.kts') and File.file?(file_name) - file_content = File.read(file_name) - if not file_content.start_with?(license_header) - issue_files.push(file_name) - end - end -end -puts 'done' - -if issue_files.empty? - puts "\nAll changed files have correct headers" - exit 0 -end - -puts <<-EOF - -The following #{issue_files.length} files have incorrect license headers: -#{issue_files.join("\n")} - -The following license header should be added to the start of all offending files: -=== BEGIN === -#{license_header} -=== END === - -If some of the code in this PR is not being contributed by the original author, the files which have been exclusively changed by that code can be ignored. -If this happens, this PR requirement can be bypassed once all other files are addressed. -EOF - -exit 1 diff --git a/.ci/license-header.sh b/.ci/license-header.sh index a7b307b8f9..52307f3d96 100755 --- a/.ci/license-header.sh +++ b/.ci/license-header.sh @@ -4,7 +4,7 @@ # SPDX-License-Identifier: GPL-3.0-or-later # specify full path if dupes may exist -EXCLUDE_FILES="CPM.cmake CPMUtil.cmake GetSCMRev.cmake sse2neon.h tools/cpm" +EXCLUDE_FILES="CPM.cmake CPMUtil.cmake GetSCMRev.cmake sse2neon.h renderdoc_app.h tools/cpm externals/stb externals/glad externals/getopt externals/gamemode externals/FidelityFX-FSR externals/demangle externals/bc_decoder" # license header constants, please change when needed :)))) YEAR=2025 @@ -248,4 +248,4 @@ if [ "$COMMIT" = "true" ]; then echo "-- Changes committed. You may now push." fi -[ -d "$TMP_DIR" ] && rm -rf "$TMP_DIR" \ No newline at end of file +[ -d "$TMP_DIR" ] && rm -rf "$TMP_DIR" diff --git a/.ci/license/header-hash.txt b/.ci/license/header-hash.txt deleted file mode 100644 index 91bc195e23..0000000000 --- a/.ci/license/header-hash.txt +++ /dev/null @@ -1,2 +0,0 @@ -# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project -# SPDX-License-Identifier: GPL-3.0-or-later diff --git a/.ci/license/header.txt b/.ci/license/header.txt deleted file mode 100644 index 53a4f4396e..0000000000 --- a/.ci/license/header.txt +++ /dev/null @@ -1,2 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later