diff --git a/.gitignore b/.gitignore index 2b342e5145..6146d47a3f 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,6 @@ eden-windows-msvc artifacts *.AppImage* /install* + +# Prevent clobbering with upstream docs +/docs/CPMUtil.md diff --git a/CMakeModules/CPM.cmake b/CMakeModules/CPM.cmake index 5544d8eefe..2d97f5493c 100644 --- a/CMakeModules/CPM.cmake +++ b/CMakeModules/CPM.cmake @@ -1,3 +1,8 @@ +# SPDX-FileCopyrightText: Copyright 2025 crueter +# SPDX-License-Identifier: GPL-3.0-or-later + +# This is a slightly modified version of CPM.cmake + # CPM.cmake - CMake's missing package manager # =========================================== # See https://github.com/cpm-cmake/CPM.cmake for usage and update instructions. diff --git a/tools/shellcheck.sh b/tools/shellcheck.sh index 719c717cf2..832b7496c7 100755 --- a/tools/shellcheck.sh +++ b/tools/shellcheck.sh @@ -1,6 +1,6 @@ #!/bin/sh -e -# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +# SPDX-FileCopyrightText: Copyright 2025 crueter # SPDX-License-Identifier: GPL-3.0-or-later # fd is slightly faster on NVMe (the syntax sux though) diff --git a/tools/update-cpm.sh b/tools/update-cpm.sh index 8bd8df2b83..6ca23fc2d6 100755 --- a/tools/update-cpm.sh +++ b/tools/update-cpm.sh @@ -1,6 +1,16 @@ #!/bin/sh -e -# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +# SPDX-FileCopyrightText: Copyright 2025 crueter # SPDX-License-Identifier: GPL-3.0-or-later -wget -O CMakeModules/CPM.cmake https://github.com/cpm-cmake/CPM.cmake/releases/latest/download/CPM.cmake +# updates CPMUtil, its docs, and related tools from the latest release + +if command -v zstd > /dev/null; then + EXT=tar.zst +else + EXT=tar.gz +fi + +wget "https://git.crueter.xyz/CMake/CPMUtil/releases/download/continuous/CPMUtil.$EXT" +tar xf "CPMUtil.$EXT" +rm "CPMUtil.$EXT"