diff --git a/Makefile b/Makefile index 75335d1..8b82231 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ VERSION := 1.0.0 PLUGINSLUG := passive-indexation-check MAINFILE := index.php SRCPATH := $(shell pwd)/src +SVNUSER := niteoweb lint: bin/phpcs --config-set show_warnings 0 @@ -17,3 +18,13 @@ release: zip -r $(PLUGINSLUG).zip $(PLUGINSLUG) rm -rf $(PLUGINSLUG) mv $(PLUGINSLUG).zip build/ + +deploy: + @rm -fr /tmp/$(PLUGINSLUG)/ + svn co http://plugins.svn.wordpress.org/$(PLUGINSLUG)/ /tmp/$(PLUGINSLUG) + cp -ar $(SRCPATH)/* /tmp/$(PLUGINSLUG)/trunk/ + cd /tmp/$(PLUGINSLUG)/trunk/; svn add * --force + cd /tmp/$(PLUGINSLUG)/trunk/; svn commit --username=$(SVNUSER) -m "Updating to $(VERSION)" + cd /tmp/$(PLUGINSLUG)/; svn copy trunk/ tags/$(VERSION)/ + cd /tmp/$(PLUGINSLUG)/tags/$(VERSION)/; svn commit --username=$(SVNUSER) -m "Tagging version $(VERSION)" + rm -fr /tmp/$(PLUGINSLUG)/ \ No newline at end of file