blob fa213662ae4de1409654e4273c10d2f1ebeed463 646 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
19
| | #!/bin/sh -eu
# SPDX-FileCopyrightText: 2022 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2022 Unikie
# SPDX-License-Identifier: EUPL-1.2+
trap 'rm -f -- "$documented_uuids"' EXIT
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
documented_uuids=$(mktemp)
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 fa21366 ...
found fa21366 in https://inbox.spectrum-os.org/spectrum-devel/20221109062251.850946-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/20221109062251.850946-1-henri.rosten@unikie.com/
diff --git a/Documentation/scripts/undocumented-uuids.sh b/Documentation/scripts/undocumented-uuids.sh
index 34c2d22..fa21366 100755
Checking patch Documentation/scripts/undocumented-uuids.sh...
Applied patch Documentation/scripts/undocumented-uuids.sh cleanly.
index at:
100755 fa213662ae4de1409654e4273c10d2f1ebeed463 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).