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

e96f35
#!/bin/bash
e96f35
#
e96f35
# cli_commitRepoChanges.sh -- This function is the interface we use
e96f35
# inside centos-art.sh script to commit changes inside the repository.
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
e96f35
function cli_commitRepoChanges {
e96f35
e96f35
    if [[ ! $FLAG_COMMIT_CHANGES == 'true' ]];then
e96f35
        return
e96f35
    fi
e96f35
    
e96f35
    local LOCATIONS="$@"
e96f35
e96f35
    cli_checkFiles -e ${LOCATIONS}
e96f35
e96f35
    ${CLI_NAME} svn --sync ${LOCATIONS}
e96f35
e96f35
}