Renamed META.yml to PLUGIN.yml
This commit is contained in:
parent
b62ed65111
commit
e67b62bef1
@ -21,17 +21,17 @@ cd dist
|
|||||||
|
|
||||||
PLUGIN_MODULE=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*\.pm$' | tail -1 | sed '1q;d')
|
PLUGIN_MODULE=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*\.pm$' | tail -1 | sed '1q;d')
|
||||||
echo "PLUGIN MODULE: $PLUGIN_MODULE"
|
echo "PLUGIN MODULE: $PLUGIN_MODULE"
|
||||||
META_YML=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*/META\.yml$' | sed '1q;d')
|
PLUGIN_YML=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*/PLUGIN\.yml$' | sed '1q;d')
|
||||||
|
|
||||||
sed -i -e "s/{VERSION}/${PLUGIN_VERSION}/g" ${PLUGIN_MODULE}
|
sed -i -e "s/{VERSION}/${PLUGIN_VERSION}/g" ${PLUGIN_MODULE}
|
||||||
sed -i -e "s/{MINIMUM_VERSION}/${MINIMUM_VERSION}/g" ${PLUGIN_MODULE}
|
sed -i -e "s/{MINIMUM_VERSION}/${MINIMUM_VERSION}/g" ${PLUGIN_MODULE}
|
||||||
sed -i -e "s/1900-01-01/${TODAY_ISO}/g" $PLUGIN_MODULE
|
sed -i -e "s/1900-01-01/${TODAY_ISO}/g" $PLUGIN_MODULE
|
||||||
|
|
||||||
if [ -f "$META_YML" ]; then
|
if [ -f "$PLUGIN_YML" ]; then
|
||||||
sed -i -e "s/{VERSION}/${PLUGIN_VERSION}/g" ${META_YML}
|
sed -i -e "s/{VERSION}/${PLUGIN_VERSION}/g" ${PLUGIN_YML}
|
||||||
sed -i -e "s/{MINIMUM_VERSION}/${MINIMUM_VERSION}/g" ${META_YML}
|
sed -i -e "s/{MINIMUM_VERSION}/${MINIMUM_VERSION}/g" ${PLUGIN_YML}
|
||||||
sed -i -e "s/1900-01-01/${TODAY_ISO}/g" $META_YML
|
sed -i -e "s/1900-01-01/${TODAY_ISO}/g" $PLUGIN_YML
|
||||||
cat $META_YML
|
cat $PLUGIN_YML
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PLUGIN_DIR=${PLUGIN_MODULE::-3}
|
PLUGIN_DIR=${PLUGIN_MODULE::-3}
|
||||||
@ -52,7 +52,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
zip -r ../${RELEASE_FILENAME} ./Koha
|
zip -r ../${RELEASE_FILENAME} ./Koha
|
||||||
cp ${META_YML} .. # Copy munged META.yml to the root directory
|
cp ${PLUGIN_YML} .. # Copy munged PLUGIN.yml to the root directory
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user