From b989ed86520ad19f1ab9e345af41d3b5416577de Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 16 Apr 2020 07:12:22 -0400 Subject: [PATCH] Add optional support for META.yml --- entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 4dc383b..7181fa0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,10 +12,17 @@ cp -r Koha dist/. cd dist 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/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 cd .. rm -rf dist