implement checkoutSubversion()
This commit is contained in:
parent
fd450c0c4a
commit
4344d60083
|
@ -17,3 +17,20 @@ function checkoutRsync() {
|
|||
--exclude=/packages ${ADDRESS} ${DIRECTORY}" || return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Downloads or updates specified SVN repository
|
||||
# Parameters: %dest_directory% %address%
|
||||
#-------------------------------------------------------------------------------
|
||||
function checkoutSubversion() {
|
||||
local DIRECTORY="${1}"
|
||||
local ADDRESS="${2}"
|
||||
if [ -d ${DIRECTORY} ]; then
|
||||
cd ${DIRECTORY}
|
||||
run "svn cleanup" || return 1
|
||||
run "svn update" || return 1
|
||||
else
|
||||
run "svn checkout ${ADDRESS} ${DIRECTORY}" || return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue