2017-01-27 17:56:47 +03:00
|
|
|
SRC := ./extension
|
|
|
|
DIST := ./dist
|
|
|
|
ZIP := $(shell which zip)
|
|
|
|
|
2017-03-07 13:11:01 +03:00
|
|
|
PACKAGE_NAME := nextcloud-video-calls-screensharing
|
2017-01-27 17:56:47 +03:00
|
|
|
PACKAGE_VERSION := $(shell echo `sed -rn -e 's/<em:version>(.*)<\/em:version>/\1/p' $(SRC)/install.rdf` | sed -rn -e 's/^ *//p')
|
|
|
|
|
|
|
|
build:
|
|
|
|
rm -rf $(DIST); \
|
|
|
|
mkdir -p $(DIST); \
|
|
|
|
cd $(SRC); \
|
|
|
|
find . -type f -print | $(ZIP) ../$(DIST)/$(PACKAGE_NAME)-$(PACKAGE_VERSION).xpi -@
|