23 lines
767 B
Bash
Executable File
23 lines
767 B
Bash
Executable File
#!/bin/bash
|
|
echo "WIKI UPDATE:"
|
|
WIKI=/var/www/html/wiki.html
|
|
if [ -f "$WIKI" ]; then
|
|
SIZE=$(wc -c < "$WIKI")
|
|
MOD=$(stat -c "%y" "$WIKI" | cut -d. -f1)
|
|
echo " wiki.html: ${SIZE}B modified $MOD"
|
|
fi
|
|
MD=/var/www/html/CLAUDE.md
|
|
if [ -f "$MD" ]; then
|
|
LINES=$(wc -l < "$MD")
|
|
MOD=$(stat -c "%y" "$MD" | cut -d. -f1)
|
|
echo " CLAUDE.md: ${LINES} lines modified $MOD"
|
|
fi
|
|
VAULT=$(ls /opt/wevads/vault/ 2>/dev/null | wc -l)
|
|
echo " Vault: $VAULT GOLDs"
|
|
WIKI_ARTS=$(grep -c "article\|section\|h2" /var/www/html/wiki.html 2>/dev/null)
|
|
echo " Wiki articles: ~$WIKI_ARTS sections"
|
|
GIT_TODAY=$(cd /var/www/html && git log --oneline --since="today" 2>/dev/null | wc -l)
|
|
echo " Git commits today: $GIT_TODAY"
|
|
echo ""
|
|
echo "Auto-enrichment: wiki reflects latest git state"
|