1
0
mirror of synced 2025-01-19 01:11:42 +03:00
Akolzin Dmitry 1b8328b941 Deploy script fix (#62)
* Deploy fix
* Bootstrap update
2018-04-27 16:28:28 +03:00

23 lines
830 B
Makefile

FILE = $(TRAVIS_BUILD_DIR)/VERSION
VERSION = `cat $(FILE)`
all: svn_clone prepare svn_commit remove_dir
svn_clone:
mkdir /tmp/svn_plugin_dir
svn co $(SVNREPOURL) /tmp/svn_plugin_dir --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
prepare: /tmp/svn_plugin_dir
svn delete /tmp/svn_plugin_dir/trunk/*
rm -rf /tmp/svn_plugin_dir/trunk/*
cp -R $(TRAVIS_BUILD_DIR)/src/* /tmp/svn_plugin_dir/trunk
svn copy /tmp/svn_plugin_dir/trunk /tmp/svn_plugin_dir/tags/$(VERSION) --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
svn_commit: /tmp/svn_plugin_dir/tags
svn add /tmp/svn_plugin_dir/trunk/* --force
svn add /tmp/svn_plugin_dir/tags/$(VERSION)/* --force
svn ci /tmp/svn_plugin_dir -m $(VERSION) --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
remove_dir:
rm -rf /tmp/svn_plugin_dir