Blame Scripts/Bash/Functions/Vcs/Subversion/subversion_mkRepoDirectory.sh

2aeb89
#!/bin/bash
2aeb89
#
3b9515
# subversion_mkRepoDirectory.sh -- This function standardizes the way
2aeb89
# centos-art.sh script creates directories inside the working copy.
2aeb89
#
e6bbbf
# Copyright (C) 2009-2013 The CentOS Project
2aeb89
#
2aeb89
# This program is free software; you can redistribute it and/or modify
2aeb89
# it under the terms of the GNU General Public License as published by
2aeb89
# the Free Software Foundation; either version 2 of the License, or (at
2aeb89
# your option) any later version.
2aeb89
#
2aeb89
# This program is distributed in the hope that it will be useful, but
2aeb89
# WITHOUT ANY WARRANTY; without even the implied warranty of
2aeb89
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2aeb89
# General Public License for more details.
2aeb89
#
2aeb89
# You should have received a copy of the GNU General Public License
2aeb89
# along with this program; if not, write to the Free Software
2aeb89
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2aeb89
#
2aeb89
# ----------------------------------------------------------------------
2aeb89
# $Id$
2aeb89
# ----------------------------------------------------------------------
2aeb89
3b9515
function subversion_mkRepoDirectory {
2aeb89
2aeb89
    local TARGET=$(cli_checkRepoDirSource ${1})
2aeb89
2aeb89
    # Print action reference.
2aeb89
    cli_printMessage "${TARGET}" --as-creating-line
2aeb89
2aeb89
    # Copy source location to its target using version control.
3b9515
    ${COMMAND} mkdir ${TARGET} --quiet
2aeb89
2aeb89
}