| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function copy { |
| |
| local ACTIONNAM='' |
| local ACTIONVAL='' |
| local -a ACTIONVALS |
| local -a SRC |
| local DST='' |
| local COUNT=0 |
| |
| |
| copy_getArguments |
| |
| |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| |
| |
| |
| for ACTIONVAL in "$@";do |
| ACTIONVALS[((++${#ACTIONVALS[*]}))]="$ACTIONVAL" |
| done |
| |
| |
| while [[ ${COUNT} -lt $((${#ACTIONVALS[*]} - 1)) ]];do |
| SRC[((++${#SRC[*]}))]=${ACTIONVALS[$COUNT]} |
| COUNT=$(($COUNT + 1)) |
| done |
| |
| |
| DST=$(cli_checkRepoDirTarget "${ACTIONVALS[((${#ACTIONVALS[*]} - 1))]}") |
| |
| |
| for ACTIONVAL in "${SRC[@]}";do |
| |
| |
| |
| |
| cli_checkRepoDirSource |
| |
| |
| |
| |
| |
| cli_syncroRepoChanges "$ACTIONVAL $DST" |
| |
| |
| echo "svn copy $ACTIONVAL $DST" |
| |
| |
| |
| |
| |
| cli_commitRepoChanges "$ACTIONVAL $DST" |
| |
| |
| centos-art help "$ACTIONVAL" "$DST" --copy |
| |
| done |
| |
| } |