From 3e342a8429d8f822b1b3d297c916d6fcc5b7c57b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 10 Feb 2023 18:01:35 +0000 Subject: [PATCH] Makefile --- Makefile | 11 +++++++++++ Plugin.php | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 Makefile diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..e02c58f --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ + + + +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 \ No newline at end of file diff --git a/Plugin.php b/Plugin.php index 37968ec..3a2de7d 100644 --- a/Plugin.php +++ b/Plugin.php @@ -202,7 +202,7 @@ public function getPluginAuthor() } public function getPluginVersion() { - return '1.7.13'; + return '1.8.0'; } public function getPluginHomepage() {