make update will clone a readonly repository if the src/github directory doesn't exist, otherwise git pull whatever is already there

git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@115671 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2011-01-19 04:03:50 +00:00
parent af3fe14c81
commit 6d5aeca7f2

View File

@ -6,7 +6,7 @@
#
update:
cd $(CURDIR)/src/github/; git pull
if [ -d $(CURDIR)/src/github ]; then cd $(CURDIR)/src/github; git pull; else git clone git://github.com/chillu/silverstripe-doc-restructuring.git $(CURDIR)/src/github; fi
cd $(CURDIR); php sapphire/cli-script.php dev/tasks/RebuildLuceneDocsIndex flush=1
test:
@ -20,4 +20,4 @@ getallmodules:
if [ -d genericdataadmin ]; then svn update genericdataadmin; else svn co http://svn.silverstripe.com/open/modules/genericdataadmin/trunk genericdataadmin; fi
if [ -d multiform ]; then svn update multiform; else svn co http://svn.silverstripe.com/open/modules/multiform/trunk multiform; fi
if [ -d subsites ]; then svn update subsites; else svn co http://svn.silverstripe.com/open/modules/subsites/trunk subsites; fi
if [ -d userforms ]; then svn update userforms; else svn co http://svn.silverstripe.com/open/modules/userforms/trunk userforms; fi
if [ -d userforms ]; then svn update userforms; else svn co http://svn.silverstripe.com/open/modules/userforms/trunk userforms; fi