Files

21 lines
650 B
Bash
Executable File

#!/usr/bin/env bash
# Regenerates MANIFEST.sha256 for the kit. Excludes generated, private and VCS files.
set -euo pipefail
cd "$(dirname "$0")/.."
{
find . -type f \
-not -path './.git/*' \
-not -path './.build/*' \
-not -path './Packages/SprachmittlerKit/.build/*' \
-not -path './Sprachmittler.xcodeproj/*' \
-not -path './evaluation/corpus/*' \
-not -path './evaluation/results/*' \
-not -name 'MANIFEST.sha256' \
-not -name '.DS_Store' \
| LC_ALL=C sort \
| while IFS= read -r f; do shasum -a 256 "$f"; done
} > MANIFEST.sha256
echo "✓ MANIFEST.sha256: $(wc -l < MANIFEST.sha256 | tr -d ' ') files"