From 68d5a739a7e447c8bb3103e6f5188d45f7daad6f Mon Sep 17 00:00:00 2001 From: pajlada Date: Tue, 30 Dec 2025 19:15:25 +0100 Subject: [PATCH] chore: explicitly mark licenses for script files part 1 (#6699) --- scripts/README.md | 6 ++++++ scripts/build-docker-images.sh | 3 --- scripts/check-clang-tidy.sh | 4 ++++ scripts/check-format.sh | 4 ++++ scripts/check-line-endings.sh | 4 ++++ scripts/clang-format-all.sh | 5 +++++ scripts/get-vcpkg-package-versions.sh | 4 ++++ scripts/make_luals_meta.py | 6 ++++++ scripts/run-and-kill.sh | 4 ++++ scripts/update-badges.py | 4 ++++ scripts/update-emoji-data.sh | 5 +++++ 11 files changed, 46 insertions(+), 3 deletions(-) delete mode 100755 scripts/build-docker-images.sh diff --git a/scripts/README.md b/scripts/README.md index 92192ef3..24ec3882 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -1,3 +1,9 @@ + + # scripts This directory contains scripts that may be useful for a contributor to run while working on Chatterino diff --git a/scripts/build-docker-images.sh b/scripts/build-docker-images.sh deleted file mode 100755 index a6053c81..00000000 --- a/scripts/build-docker-images.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -docker build -f .docker/Dockerfile.build -t chatterino-ubuntu-build .docker diff --git a/scripts/check-clang-tidy.sh b/scripts/check-clang-tidy.sh index bfca9ac2..a9d0bfb9 100755 --- a/scripts/check-clang-tidy.sh +++ b/scripts/check-clang-tidy.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2024 Rasmus Karlsson +# +# SPDX-License-Identifier: CC0-1.0 + # example usage: FAST=1 ./scripts/check-clang-tidy.sh --checks '-*,modernize-return-braced-init-list' --fix set -e diff --git a/scripts/check-format.sh b/scripts/check-format.sh index 1d786901..92e22d6f 100755 --- a/scripts/check-format.sh +++ b/scripts/check-format.sh @@ -1,5 +1,9 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2019 Rasmus Karlsson +# +# SPDX-License-Identifier: CC0-1.0 + set -eu fail="0" diff --git a/scripts/check-line-endings.sh b/scripts/check-line-endings.sh index 92ae21b8..499ac586 100755 --- a/scripts/check-line-endings.sh +++ b/scripts/check-line-endings.sh @@ -1,5 +1,9 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2025 Rasmus Karlsson +# +# SPDX-License-Identifier: CC0-1.0 + set -eu fail="0" diff --git a/scripts/clang-format-all.sh b/scripts/clang-format-all.sh index 267b12f4..0ba1da7e 100755 --- a/scripts/clang-format-all.sh +++ b/scripts/clang-format-all.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2018 Rasmus Karlsson +# SPDX-FileContributor: Leon Richardt +# +# SPDX-License-Identifier: CC0-1.0 + read -p "Are you sure you want to run clang-format on all source files? (y/n) " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]]; then diff --git a/scripts/get-vcpkg-package-versions.sh b/scripts/get-vcpkg-package-versions.sh index f726a6cb..b60396c9 100755 --- a/scripts/get-vcpkg-package-versions.sh +++ b/scripts/get-vcpkg-package-versions.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2024 kornes +# +# SPDX-License-Identifier: CC0-1.0 + dependencies="$(jq -r -c '.dependencies[] | if type == "string" then . else .name end' vcpkg.json)" dependencies+=" openssl" baseline="$(jq -r -c '."builtin-baseline"' vcpkg.json)" diff --git a/scripts/make_luals_meta.py b/scripts/make_luals_meta.py index 0f21ff0d..de700112 100755 --- a/scripts/make_luals_meta.py +++ b/scripts/make_luals_meta.py @@ -1,4 +1,10 @@ #!/usr/bin/env python3 + +# SPDX-FileCopyrightText: 2023 Mm2PL +# SPDX-FileContributor: Nerixyz +# +# SPDX-License-Identifier: MIT + """ This script generates docs/plugin-meta.lua. It accepts no arguments diff --git a/scripts/run-and-kill.sh b/scripts/run-and-kill.sh index d449458f..bb91b8d2 100755 --- a/scripts/run-and-kill.sh +++ b/scripts/run-and-kill.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2025 Rasmus Karlsson +# +# SPDX-License-Identifier: CC0-1.0 + set -e # This is a script that runs then kills chatterino at random intervals diff --git a/scripts/update-badges.py b/scripts/update-badges.py index 5c5f5cc3..2f2228b8 100644 --- a/scripts/update-badges.py +++ b/scripts/update-badges.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Nerixyz +# +# SPDX-License-Identifier: CC0-1.0 + import sys import json from pathlib import Path diff --git a/scripts/update-emoji-data.sh b/scripts/update-emoji-data.sh index 2e79faef..af949868 100755 --- a/scripts/update-emoji-data.sh +++ b/scripts/update-emoji-data.sh @@ -1,2 +1,7 @@ #!/bin/bash + +# SPDX-FileCopyrightText: 2018 Rasmus Karlsson +# +# SPDX-License-Identifier: CC0-1.0 + wget https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji.json -O ../resources/emoji.json