Blame Scripts/Bash/Functions/Commons/cli_synchronizeRepoChanges.sh

e96f35
#!/bin/bash
e96f35
#
a6feb3
# cli_synchronizeRepoChanges.sh -- This function standardizes the way
ca6c16
# changes are synchronized between the working copy and the central
f016e7
# repository. This function is an interface to the Svn functionality
f016e7
# of the centos-art.sh script.
e96f35
#
e96f35
# Copyright (C) 2009, 2010, 2011, 2012 The CentOS Project
e96f35
#
e96f35
# This program is free software; you can redistribute it and/or modify
e96f35
# it under the terms of the GNU General Public License as published by
e96f35
# the Free Software Foundation; either version 2 of the License, or (at
e96f35
# your option) any later version.
e96f35
#
e96f35
# This program is distributed in the hope that it will be useful, but
e96f35
# WITHOUT ANY WARRANTY; without even the implied warranty of
e96f35
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
e96f35
# General Public License for more details.
e96f35
#
e96f35
# You should have received a copy of the GNU General Public License
e96f35
# along with this program; if not, write to the Free Software
e96f35
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
e96f35
#
e96f35
# ----------------------------------------------------------------------
e96f35
# $Id$
e96f35
# ----------------------------------------------------------------------
e96f35
a6feb3
function cli_synchronizeRepoChanges {
e96f35
f016e7
    # Verify syncronization flag.
f016e7
    if [[ ! $FLAG_SYNC_CHANGES == 'true' ]];then
e96f35
        return
e96f35
    fi
e96f35
    
ca6c16
    # Verify existence of locations passed to this function.
ca6c16
    cli_checkFiles -e $@
e96f35
ca6c16
    # Synchronize changes.
a9bee9
    cli_runFnEnvironment svn --sync $@
e96f35
e96f35
}