Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
Update release information
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Feb 9, 2016
1 parent f713220 commit 420796c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)/

0 comments on commit 420796c

Please sign in to comment.