aboutsummaryrefslogtreecommitdiff
path: root/tools/cpm/update.sh
blob: 15fd937242b0dec7608f514a906a051f2e06b61e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

# SPDX-FileCopyrightText: Copyright 2026 crueter
# SPDX-License-Identifier: LGPL-3.0-or-later

# updates CPMUtil, its docs, and related tools from the latest release

if command -v zstd >/dev/null 2>&1; then
	EXT=tar.zst
else
	EXT=tar.gz
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"