Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
creecros committed Feb 10, 2023
1 parent d607700 commit d914094
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
plugin=SendEmailCreator

all:
@ echo "Build archive for plugin ${plugin} version=${version}"
@ git archive HEAD --prefix=${plugin}/ --format=zip -o ${plugin}-${version}.zip

extract = $(shell grep -A2 $(1) Plugin.php | tail -n1 | tr -d " ;'" | sed "s/return//")

plugin = $(call extract, getPluginName)
version = $(call extract, getPluginVersion)

all:
@echo "Build archive for plugin ${plugin} version=${version}"
@git archive HEAD --prefix=${plugin}/ --format=zip -o ${plugin}-${version}.zip

0 comments on commit d914094

Please sign in to comment.