-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_specs.sh
More file actions
34 lines (28 loc) · 850 Bytes
/
Copy pathcheck_specs.sh
File metadata and controls
34 lines (28 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Idris2 spec compilation checker (Bash version)
# Run with: bash check_specs.sh
# Note: Idris2 is auto-loaded from ~/.bashrc
echo -e "\033[36mChecking Idris2 specifications...\033[0m"
specs=(
"Specs/HwpCommon.idr"
"Specs/ActionTableMCP.idr"
"Specs/AutomationMCP.idr"
)
failed=0
for spec in "${specs[@]}"; do
echo -e "\n\033[33mChecking $spec...\033[0m"
if idris2.sh --check "$spec" 2>&1; then
echo -e "\033[32m✓ $spec compiled successfully\033[0m"
else
echo -e "\033[31m✗ $spec failed to compile\033[0m"
((failed++))
fi
done
echo -e "\n\033[36m========================================\033[0m"
if [ $failed -eq 0 ]; then
echo -e "\033[32mAll specs compiled successfully!\033[0m"
exit 0
else
echo -e "\033[31m$failed spec(s) failed to compile\033[0m"
exit 1
fi