Add optional support for META.yml
This commit is contained in:
parent
78737a0c01
commit
b989ed8652
@ -12,10 +12,17 @@ cp -r Koha dist/.
|
|||||||
cd dist
|
cd dist
|
||||||
|
|
||||||
PLUGIN_MODULE=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*\.pm$' | sed '1q;d')
|
PLUGIN_MODULE=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*\.pm$' | sed '1q;d')
|
||||||
|
META_YML=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*/META\.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/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
|
||||||
|
sed -i -e "s/{VERSION}/${PLUGIN_VERSION}/g" ${META_YML}
|
||||||
|
sed -i -e "s/1900-01-01/${TODAY_ISO}/g" $META_YML
|
||||||
|
cat $META_YML
|
||||||
|
fi
|
||||||
|
|
||||||
zip -r ../${RELEASE_FILENAME} ./Koha
|
zip -r ../${RELEASE_FILENAME} ./Koha
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
|
Loading…
Reference in New Issue
Block a user