|
|
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
|
|
|
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
|
|
|
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
|
|
|
dcd347 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, 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 |
}
|