#!/bin/bash # # audit-headers.sh # Zyquo Cloud # # Author: Simon-Pierre Boucher # Mail: contact@spboucher.ai # # Repository-wide sweep: every code file must carry the Author/Mail header. # set -uo pipefail cd "$(dirname "$0")/.." missing=0 while IFS= read -r file; do if ! head -12 "$file" | grep -q "Author: Simon-Pierre Boucher"; then echo "MISSING HEADER: $file" missing=$((missing+1)) fi done < <(find Sources Tests scripts -type f \( -name "*.swift" -o -name "*.sh" \) ; echo Package.swift; echo Makefile) if [ "$missing" -eq 0 ]; then echo "OK — all code files carry the mandatory header." else echo "$missing file(s) missing the header." exit 1 fi