patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 04344075e0e66d74f4b88faae0fb88285b1b1550 576 bytes (raw)
name: Documentation/scripts/undocumented-uuids.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
 
#!/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/uuid-reference.adoc

tmp=$(mktemp)
grep -Eio "$PATTERN" "$UUID_REFERENCE_PATH" | sort -u >$tmp
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 - $tmp
rm -f $tmp

debug log:

solving 0434407 ...
found 0434407 in https://inbox.spectrum-os.org/spectrum-devel/20221108100544.721808-1-henri.rosten@unikie.com/
found 34c2d22 in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100755 34c2d220ecf6c25b839dc956ddbbab9c050cf076	Documentation/scripts/undocumented-uuids.sh

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20221108100544.721808-1-henri.rosten@unikie.com/
diff --git a/Documentation/scripts/undocumented-uuids.sh b/Documentation/scripts/undocumented-uuids.sh
index 34c2d22..0434407 100755

Checking patch Documentation/scripts/undocumented-uuids.sh...
Applied patch Documentation/scripts/undocumented-uuids.sh cleanly.

index at:
100755 04344075e0e66d74f4b88faae0fb88285b1b1550	Documentation/scripts/undocumented-uuids.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).