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
fa95b1
#
fa95b1
# This program is free software; you can redistribute it and/or modify
fa95b1
# it under the terms of the GNU General Public License as published by
dcd347
# the Free Software Foundation; either version 2 of the License, or (at
dcd347
# your option) any later version.
fa95b1
#
74a058
# This program is distributed in the hope that it will be useful, but
74a058
# 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
dcd347
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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
}