-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify_structure.sh
More file actions
executable file
·63 lines (56 loc) · 1.52 KB
/
verify_structure.sh
File metadata and controls
executable file
·63 lines (56 loc) · 1.52 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
echo "=== PhoenixPME Structure Verification ==="
echo ""
ERRORS=0
# Check critical files
echo "1. Critical files in root:"
for file in README.md PROGRESS.md LICENSE CONTRIBUTING.md; do
if [ -f "$file" ]; then
echo " ✅ $file"
else
echo " ❌ $file missing"
ERRORS=$((ERRORS+1))
fi
done
echo ""
echo "2. Folder structure:"
for folder in docs legal scripts apps contracts; do
if [ -d "$folder" ]; then
echo " ✅ $folder/"
else
echo " ❌ $folder/ missing"
ERRORS=$((ERRORS+1))
fi
done
echo ""
echo "3. Documentation consistency:"
# Check for conflicting fee percentages
CONFLICTS=$(grep -r "0\.0[0-9]%" . --include="*.md" 2>/dev/null | grep -v "test-files" | wc -l)
if [ "$CONFLICTS" -eq 0 ]; then
echo " ✅ No conflicting fee percentages"
else
echo " ❌ Found $CONFLICTS conflicting fee mentions"
ERRORS=$((ERRORS+1))
fi
# Check factual legal status exists
if [ -f "docs/FACTUAL_LEGAL_STATUS.md" ]; then
echo " ✅ FACTUAL_LEGAL_STATUS.md present"
else
echo " ❌ FACTUAL_LEGAL_STATUS.md missing"
ERRORS=$((ERRORS+1))
fi
echo ""
echo "4. Git status:"
if [ -z "$(git status --porcelain)" ]; then
echo " ✅ All changes committed"
else
echo " ⚠️ Uncommitted changes exist"
git status --porcelain | head -5
fi
echo ""
echo "=== SUMMARY ==="
if [ "$ERRORS" -eq 0 ]; then
echo "🎉 ALL CHECKS PASSED! Structure is CORRECT and CONSISTENT!"
else
echo "⚠️ Found $ERRORS issue(s) that need attention"
fi