1
0

Add changelog, ability to copy plugin changelog and readme files into plugin data dir before zipping

This commit is contained in:
Kyle M Hall 2020-04-16 13:43:23 -04:00
parent 94432960e8
commit 6c98481cd7
2 changed files with 29 additions and 0 deletions

19
CHANGELOG.md Normal file
View File

@ -0,0 +1,19 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [1.0.0] - 2020-04-16
### Added
- This changelog
- If README.md is present in the root directory of the plugin, it will be copied into the plugin's data directory before create the kpz file
- The same as above, but for CHANGELOG.md as well
### Changed
- Nothing
### Removed
- Nothing

View File

@ -34,6 +34,16 @@ if [ -f "$META_YML" ]; then
cat $META_YML cat $META_YML
fi fi
PLUGIN_DIR=${PLUGIN_MODULE::-3}
if [ -f "CHANGELOG.md" ]; then
cp CHANGELOG.md "$PLUGIN_DIR/CHANGELOG.md"
fi
if [ -f "README.md" ]; then
cp README.md "$PLUGIN_DIR/README.md"
fi
zip -r ../${RELEASE_FILENAME} ./Koha zip -r ../${RELEASE_FILENAME} ./Koha
cp ${META_YML} .. # Copy munged META.yml to the root directory cp ${META_YML} .. # Copy munged META.yml to the root directory
cd .. cd ..