fix error in meta.json, update validator

This commit is contained in:
Mario Voigt 2021-10-28 03:56:49 +02:00
parent 523457b470
commit a4ea389be8
2 changed files with 11 additions and 7 deletions

View File

@ -12,14 +12,18 @@ grep -v "validates\|warning: failed to load external entity" 000_xmllint.out; rm
#complete set of meta information #complete set of meta information
AGGLOMERATED_JSON="" AGGLOMERATED_JSON=""
for folder in */ ; do for folder in */ ; do
if [[ ! -f "${folder}/meta.json" ]]; then if [[ ! -f "${folder}meta.json" ]]; then
echo "meta.json missing for ${folder}" echo "meta.json missing for ${folder}"
else else
echo ${AGGLOMERATED_JSON} > /tmp/prevJson JSON_OKAY=$(jq -e . ${folder}meta.json)
AGGLOMERATED_JSON=$(jq -s ".[0] + .[1]" /tmp/prevJson ${folder}/meta.json) if [ $? -eq 0 ]; then
echo ${AGGLOMERATED_JSON} > /tmp/prevJson
AGGLOMERATED_JSON=$(jq -s ".[0] + .[1]" /tmp/prevJson ${folder}meta.json)
else
echo Format error in ${folder}meta.json
fi
#DEBUG #DEBUG
#cat ${folder}/meta.json | jq #cat ${folder}meta.json | jq
fi fi
done done
#print overall json #print overall json
@ -59,7 +63,7 @@ sed -i 's/\*\* with .* \.inx files\*\*/\*\* with \*\*'${INX}' \.inx files\*\*/g'
echo "Removing unrequired pyc cache files" echo "Removing unrequired pyc cache files"
find . -type d -name "__pycache__" -exec rm -rf {} \; find . -type d -name "__pycache__" -exec rm -rf {} \; > /dev/null
read -p "Build local gallery extension zip files?" -n 1 -r read -p "Build local gallery extension zip files?" -n 1 -r

View File

@ -6,7 +6,7 @@
"dependent_extensions": [ "dependent_extensions": [
"apply_transformations", "apply_transformations",
"remove_empty_groups" "remove_empty_groups"
],, ],
"original_name": "Styles To Layers", "original_name": "Styles To Layers",
"original_id": "fablabchemnitz.de.styles_to_layers", "original_id": "fablabchemnitz.de.styles_to_layers",
"license": "GNU GPL v3", "license": "GNU GPL v3",