Blame Scripts/Functions/Path/path.sh

407d66
#!/bin/bash
407d66
#
407d66
# path.sh -- This function provides file manipulations to aliviate
ff008e
# path maintainance inside the repository.
407d66
#
ff008e
# Copyright (C) 2009-2011 Alain Reguera Delgado
407d66
# 
407d66
# This program is free software; you can redistribute it and/or
407d66
# modify it under the terms of the GNU General Public License as
407d66
# published by the Free Software Foundation; either version 2 of the
407d66
# License, or (at your option) any later version.
407d66
# 
407d66
# This program is distributed in the hope that it will be useful, but
407d66
# WITHOUT ANY WARRANTY; without even the implied warranty of
407d66
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
407d66
# General Public License for more details.
407d66
#
407d66
# You should have received a copy of the GNU General Public License
407d66
# along with this program; if not, write to the Free Software
407d66
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
407d66
# USA.
407d66
# 
407d66
# ----------------------------------------------------------------------
407d66
# $Id$
407d66
# ----------------------------------------------------------------------
407d66
    
407d66
function path {
407d66
ff008e
    # Define deafult value to target flag. The target flag (--to)
ff008e
    # controls final destination used by copy related actions.
ff008e
    local FLAG_TO=''
ff008e
ff008e
    # Define default value to syncronization flag. The syncronization
476434
    # flag (--sync) controls whether centos-art.sh script calls itself
ff008e
    # to create/delete parallel directories at the moment of
ff008e
    # create/delte action itself.
ff008e
    local FLAG_SYNC='false'
ff008e
407d66
    # Define command-line interface.
407d66
    path_getActions
407d66
407d66
}