SPB Git

spb/zyquo-local Public MIT

Native macOS AI chat that runs LLMs 100% locally on Apple Silicon with MLX — no cloud, no API keys.

Swift 97.2% Shell 1.8% Makefile 1%
764 B · 31 lines shellscript
Raw Blame History
1#!/bin/bash2#3#  check-headers.sh4#  Zyquo Local5#6#  Author: Simon-Pierre Boucher7#  Mail: contact@spboucher.ai8#9# Verifies that every code file carries the mandatory Author/Mail header.1011set -euo pipefail12cd "$(dirname "$0")/.."1314fail=015while IFS= read -r f; do16    if ! head -8 "$f" | grep -q "Author: Simon-Pierre Boucher"; then17        echo "MISSING HEADER: $f"18        fail=119    fi20    if ! head -8 "$f" | grep -q "Mail: contact@spboucher.ai"; then21        echo "MISSING MAIL:   $f"22        fail=123    fi24done < <(find Sources Support scripts assets -type f \( -name '*.swift' -o -name '*.sh' -o -name '*.plist' \) 2>/dev/null; ls Package.swift Makefile)2526if [ "$fail" -eq 0 ]; then27    echo "All code files carry the mandatory header."28else29    exit 130fi31