Add changelog, ability to copy plugin changelog and readme files into plugin data dir before zipping
This commit is contained in:
parent
94432960e8
commit
6c98481cd7
19
CHANGELOG.md
Normal file
19
CHANGELOG.md
Normal 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
|
@ -34,6 +34,16 @@ if [ -f "$META_YML" ]; then
|
||||
cat $META_YML
|
||||
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
|
||||
cp ${META_YML} .. # Copy munged META.yml to the root directory
|
||||
cd ..
|
||||
|
Loading…
Reference in New Issue
Block a user