|
|
015e01 |
#!/bin/bash
|
|
|
015e01 |
#
|
|
|
015e01 |
# path_doDelete.sh -- This function deletes files inside the working
|
|
|
015e01 |
# copy using subversion commands.
|
|
|
015e01 |
#
|
|
|
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
|
|
|
fa95b1 |
# the Free Software Foundation; either version 2 of the License, or
|
|
|
fa95b1 |
# (at your option) any later version.
|
|
|
fa95b1 |
#
|
|
|
015e01 |
# This program is distributed in the hope that it will be useful, but
|
|
|
015e01 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
015e01 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
015e01 |
# General Public License for more details.
|
|
|
015e01 |
#
|
|
|
015e01 |
# You should have received a copy of the GNU General Public License
|
|
|
015e01 |
# along with this program; if not, write to the Free Software
|
|
|
015e01 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
015e01 |
# USA.
|
|
|
015e01 |
# ----------------------------------------------------------------------
|
|
|
015e01 |
# $Id$
|
|
|
015e01 |
# ----------------------------------------------------------------------
|
|
|
015e01 |
|
|
|
015e01 |
function path_doDelete {
|
|
|
015e01 |
|
|
|
c1853c |
# Verify target directory.
|
|
|
c1853c |
cli_checkRepoDirTarget
|
|
|
015e01 |
|
|
|
ff008e |
# Print action preamble.
|
|
|
ff008e |
cli_printActionPreamble "$ACTIONVAL" 'doDelete' 'AsResponseLine'
|
|
|
015e01 |
|
|
|
ff008e |
# Syncronize parallel directories related to action value.
|
|
|
ff008e |
. /home/centos/bin/centos-art manual --delete="$ACTIONVAL"
|
|
|
ff008e |
. /home/centos/bin/centos-art render --delete="$ACTIONVAL"
|
|
|
ff008e |
. /home/centos/bin/centos-art locale --delete="$ACTIONVAL"
|
|
|
015e01 |
|
|
|
ff008e |
# Print action message.
|
|
|
ff008e |
cli_printMessage "${ACTIONVAL}" 'AsDeletingLine'
|
|
|
015e01 |
|
|
|
ff008e |
# Perform action.
|
|
|
ff008e |
svn del ${ACTIONVAL} --quiet
|
|
|
015e01 |
|
|
|
015e01 |
}
|