aboutsummaryrefslogtreecommitdiff
path: root/tools/cpm/package/patch.sh
blob: 0dc58b033bff95267dcfa4ef26fff694c7dcc4bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e

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

# shellcheck disable=SC1091

printf -- "-- Enter a patch description: "
if ! read -r description; then
	echo "" >&2
	echo "-- Patch cancelled" >&2
	rm -rf "$TMP"
	exit 1
fi

cmake -DDESCRIPTION="$description" -P "$CMAKE"/patch.cmake "$@"