Browse Source

implement checkoutSubversion()

master
belliash 9 years ago
parent
commit
4344d60083
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      libraries/repositories

+ 17
- 0
libraries/repositories View File

@ -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…
Cancel
Save