patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 5ac99d59e8098c05c2dd540858283eef941a52d8 621 bytes (raw)
name: scripts/dist-cloud-hypervisor.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 
#!/bin/sh -e
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2024 Alyssa Ross <hi@alyssa.is>

if [ $# -gt 1 ]; then
	echo "Usage: $0 [<patch version>]"
	exit 1
fi

version="$(nix-instantiate --eval --json -A cloud-hypervisor.version pkgs | jq -r .)"
name="cloud-hypervisor-$version-spectrum${1-0}-patches"

dir="$(mktemp -d)"
trap 'rm -rf -- "$dir"' EXIT

mkdir -p -- "$dir/$name/LICENSES"
cp -- LICENSES/Apache-2.0.txt LICENSES/LicenseRef-BSD-3-Clause-Google.txt \
	"$dir/$name/LICENSES"
cat pkgs/cloud-hypervisor/*.patch >"$dir/$name/cloud-hypervisor.patch"
tar -C "$dir" -czf "$name.tar.gz" -- "$name"

debug log:

solving 5ac99d5 ...
found 5ac99d5 in https://inbox.spectrum-os.org/spectrum-devel/20260708154315.678807-2-hi@alyssa.is/
found 22bcbaa in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100755 22bcbaa3625e5fac3c6e8448dbd41412cf4324a5	scripts/dist-cloud-hypervisor.sh

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20260708154315.678807-2-hi@alyssa.is/
diff --git a/scripts/dist-cloud-hypervisor.sh b/scripts/dist-cloud-hypervisor.sh
index 22bcbaa..5ac99d5 100755

Checking patch scripts/dist-cloud-hypervisor.sh...
Applied patch scripts/dist-cloud-hypervisor.sh cleanly.

index at:
100755 5ac99d59e8098c05c2dd540858283eef941a52d8	scripts/dist-cloud-hypervisor.sh

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).