56f26ca8cf
Drop the "Brand" suffix from all naming conventions: - PascalCase: MokoWaaSBrand → MokoWaaS - lowercase: mokowaasbrand → mokowaas - Display: MokoWaaS-Brand → MokoWaaS - Language keys: PLG_SYSTEM_MOKOWAASBRAND → PLG_SYSTEM_MOKOWAAS Renames 6 files and updates 28 files across PHP, XML, INI, Markdown, YAML, and shell scripts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
43 lines
815 B
Bash
43 lines
815 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
MANIFEST="src/mokowaas.xml"
|
|
|
|
echo "Validating Joomla manifest: $MANIFEST"
|
|
|
|
if [ ! -f "$MANIFEST" ]; then
|
|
echo "ERROR: Manifest not found: $MANIFEST"
|
|
exit 1
|
|
fi
|
|
|
|
# Check XML syntax
|
|
if ! xmllint --noout "$MANIFEST"; then
|
|
echo "ERROR: Manifest XML is not valid."
|
|
exit 1
|
|
fi
|
|
|
|
# Required fields
|
|
REQUIRED_NODES=(
|
|
"//extension"
|
|
"//name"
|
|
"//version"
|
|
"//author"
|
|
"//creationDate"
|
|
)
|
|
|
|
for NODE in "${REQUIRED_NODES[@]}"; do
|
|
if ! xmllint --xpath "$NODE" "$MANIFEST" > /dev/null 2>&1; then
|
|
echo "ERROR: Required manifest node missing: $NODE"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
VERSION=$(xmllint --xpath "string(//version)" "$MANIFEST")
|
|
|
|
if [ -z "$VERSION" ]; then
|
|
echo "ERROR: Version node is empty in manifest."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Manifest OK. Version: $VERSION"
|