summaryrefslogtreecommitdiff
blob: 0e2ba260abd35a02083f4b703c8ddab02f2b2397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
set -euo pipefail

SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
cd "${SCRIPT_DIR}"

XEN_VERSION="${1}"
OUR_PATCHES_VERSION="${2}"

TAG="${XEN_VERSION}-gentoo-patchset-${OUR_PATCHES_VERSION}"
DESCRIPTION="Gentoo specific patches for Xen ${XEN_VERSION} (or later)"

if [[ -n $(git status --porcelain) ]]; then
	git commit \
		--signoff \
		-m "${DESCRIPTION}"
fi

git tag \
	-s \
	-m "${DESCRIPTION}" \
	"${TAG}"