update Makefile
This commit is contained in:
parent
af90b22c3e
commit
b546a9c96c
22
Makefile
22
Makefile
@ -1,22 +1,22 @@
|
|||||||
FILE = $(TRAVIS_BUILD_DIR)/VERSION
|
FILE = $(TRAVIS_BUILD_DIR)/VERSION
|
||||||
VERSION = `cat $(FILE)`
|
VERSION = `cat $(FILE)`
|
||||||
|
|
||||||
all: svn_clone prepare svn_commit remove_dir
|
all: svn_clone svn_push remove_dir
|
||||||
|
|
||||||
svn_clone:
|
svn_clone:
|
||||||
mkdir /tmp/svn_plugin_dir
|
mkdir /tmp/svn_plugin_dir
|
||||||
svn co $(SVNREPOURL) /tmp/svn_plugin_dir --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
|
svn co $(SVNREPOURL) /tmp/svn_plugin_dir --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
|
||||||
|
|
||||||
prepare: /tmp/svn_plugin_dir
|
svn_push: /tmp/svn_plugin_dir
|
||||||
svn delete /tmp/svn_plugin_dir/trunk/*
|
if [ ! -d "/tmp/svn_plugin_dir/tags/$(VERSION)" ]; then \
|
||||||
rm -rf /tmp/svn_plugin_dir/trunk/*
|
svn delete /tmp/svn_plugin_dir/trunk/*; \
|
||||||
cp -R $(TRAVIS_BUILD_DIR)/src/* /tmp/svn_plugin_dir/trunk
|
rm -rf /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
|
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/trunk/* --force
|
svn add /tmp/svn_plugin_dir/tags/$(VERSION)/* --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; \
|
||||||
svn ci /tmp/svn_plugin_dir -m $(VERSION) --username $(USERNAME) --password $(PASSWORD) --no-auth-cache
|
fi
|
||||||
|
|
||||||
remove_dir:
|
remove_dir:
|
||||||
rm -rf /tmp/svn_plugin_dir
|
rm -rf /tmp/svn_plugin_dir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user