patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 22bcbaa3625e5fac3c6e8448dbd41412cf4324a5 687 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
21
 
#!/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"
cat pkgs/cloud-hypervisor/vhost/*.patch >"$dir/$name/vhost.patch"
tar -C "$dir" -czf "$name.tar.gz" -- "$name"

debug log:

solving 22bcbaa ...
found 22bcbaa in https://spectrum-os.org/git/spectrum

(*) 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).