Files
eden/tools/cpm/update.sh
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
406 B
Bash
Raw Normal View History

#!/bin/sh -e
# SPDX-FileCopyrightText: Copyright 2026 crueter
2025-12-31 17:16:46 +01:00
# SPDX-License-Identifier: LGPL-3.0-or-later
2025-10-20 03:43:15 +02:00
# updates CPMUtil, its docs, and related tools from the latest release
if command -v zstd >/dev/null 2>&1; then
2025-12-31 17:16:46 +01:00
EXT=tar.zst
2025-10-20 03:43:15 +02:00
else
2025-12-31 17:16:46 +01:00
EXT=tar.gz
2025-10-20 03:43:15 +02:00
fi
file=CPMUtil.$EXT
url="https://git.crueter.xyz/CMake/CPMUtil/releases/download/continuous/$file"
curl -L "$url" -o "$file"
tar xf "$file"
rm "$file"