|
|
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
|
|
|
015e01 |
#
|
|
|
015e01 |
# This program is free software; you can redistribute it and/or
|
|
|
015e01 |
# modify it under the terms of the GNU General Public License as
|
|
|
015e01 |
# published by the Free Software Foundation; either version 2 of the
|
|
|
015e01 |
# License, or (at your option) any later version.
|
|
|
015e01 |
#
|
|
|
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 |
# ----------------------------------------------------------------------
|
|
|
015e01 |
# $Id$
|
|
|
015e01 |
# ----------------------------------------------------------------------
|
|
|
015e01 |
|
|
|
015e01 |
function path_doDelete {
|
|
|
015e01 |
|
|
|
ff008e |
local PDIR
|
|
|
015e01 |
|
|
|
015e01 |
# Verify target variable. We can't continue if target is empty.
|
|
|
015e01 |
if [[ $ACTIONVAL == '' ]];then
|
|
|
015e01 |
cli_printMessage "`gettext "There is no source to work with."`" 'AsErrorLine'
|
|
|
015e01 |
cli_printMessage "$(caller)" 'AsToKnowMoreLine'
|
|
|
015e01 |
fi
|
|
|
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 |
# Syncronize changes between working copy and central repository.
|
|
|
ff008e |
cli_commitRepoChanges "$ACTIONVAL $(cli_getRepoParallelDirs "$ACTIONVAL")"
|
|
|
015e01 |
|
|
|
015e01 |
}
|