Skip to content

Commit

Permalink
Add CHANGELOG check to tarball target
Browse files Browse the repository at this point in the history
  • Loading branch information
mstilkerich committed Nov 21, 2020
1 parent 8d401b4 commit dcb7be1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ psalmanalysis:
tarball:
VERS=$$(git tag --points-at HEAD); \
if [ -z "$$VERS" ]; then echo "Error: HEAD has no version tag"; exit 1; else \
grep -q "const PLUGIN_VERSION = '$$VERS'" carddav.php || (echo "carddav::PLUGIN_VERSION does not match release" ; exit 1) ; \
git archive --format tgz --prefix carddav/ -o carddav-$$VERS.tgz HEAD; \
NVERS=$$(echo "$$VERS" | sed -e 's/^v//') \
&& grep -q "const PLUGIN_VERSION = '$$VERS'" carddav.php || (echo "carddav::PLUGIN_VERSION does not match release" ; exit 1) \
&& grep -q "^## Version $$NVERS" CHANGELOG.md || (echo "No changelog entry for release $$NVERS" ; exit 1) \
&& git archive --format tgz --prefix carddav/ -o carddav-$$VERS.tgz --worktree-attributes HEAD; \
fi

define EXECDBSCRIPT_postgres
Expand Down

0 comments on commit dcb7be1

Please sign in to comment.