patches and low-level development discussion
 help / color / mirror / code / Atom feed
c75bfd2dfa2fdc3a481282df570c0caae2c16411 blob 661 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
#!/bin/sh -eu
# SPDX-FileCopyrightText: 2022 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2022 Unikie
# SPDX-License-Identifier: EUPL-1.2+

cd "$(dirname "$0")/../.."

PATTERN='\b[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}\b'
UUID_REFERENCE_PATH=Documentation/appendices/uuid-reference.adoc

documented_uuids=$(mktemp)
trap 'rm -f -- "$documented_uuids"' EXIT

grep -Eio "$PATTERN" "$UUID_REFERENCE_PATH" | sort -u >"$documented_uuids"
git ls-files -coz --exclude-standard |
    grep -Fxvz "$UUID_REFERENCE_PATH" |
    xargs -0 git grep -Ehio --no-index --no-line-number "$PATTERN" -- |
    sort -u |
    comm -23 - "$documented_uuids"
debug log:

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

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

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

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