fix error in meta.json, update validator
This commit is contained in:
parent
523457b470
commit
a4ea389be8
@ -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
|
||||||
|
@ -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",
|
||||||
|
Reference in New Issue
Block a user