Export the reviewed application-neutral package set through the exact public allowlist. Development history and private application evidence remain outside this canonical source root. Developed with material AI assistance under maintainer review. Signed-off-by: Cole Speelman <crspeelman@gmail.com>
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
set -euo pipefail
|
||||
root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
||||
cd "$root"
|
||||
failed=0
|
||||
while IFS= read -r -d '' file; do
|
||||
case $file in
|
||||
./.git/*|./LICENSES/*|./go.sum) continue ;;
|
||||
./starters/*|./examples/*) expected=0BSD ;;
|
||||
./scripts/*|./.gitea/*|./services/*) expected=AGPL-3.0-only ;;
|
||||
*) expected=MPL-2.0 ;;
|
||||
esac
|
||||
if ! head -n 5 "$file" | grep -Fq "SPDX-License-Identifier: $expected"; then
|
||||
echo "license mismatch: $file expected $expected" >&2; failed=1
|
||||
fi
|
||||
done < <(find . -type f -print0)
|
||||
exit "$failed"
|
||||
Reference in New Issue
Block a user