Blame Scripts/Functions/Locale/locale_deleteMessages.sh

4eb007
#!/bin/bash
4eb007
#
4eb007
# locale_deleteMessages.sh -- This function deletes the source files'
4eb007
# localization directory from the working copy in conjunction with all
4eb007
# portable objects and machine objects inside it. 
4eb007
#
4eb007
# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG
4eb007
#
4eb007
# This program is free software; you can redistribute it and/or modify
4eb007
# it under the terms of the GNU General Public License as published by
4eb007
# the Free Software Foundation; either version 2 of the License, or
4eb007
# (at your option) any later version.
4eb007
#
4eb007
# This program is distributed in the hope that it will be useful, but
4eb007
# WITHOUT ANY WARRANTY; without even the implied warranty of
4eb007
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4eb007
# General Public License for more details.
4eb007
#
4eb007
# You should have received a copy of the GNU General Public License
4eb007
# along with this program; if not, write to the Free Software
4eb007
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
4eb007
#
4eb007
# ----------------------------------------------------------------------
4eb007
# $Id$
4eb007
# ----------------------------------------------------------------------
4eb007
4eb007
function locale_deleteMessages {
4eb007
4eb007
    # Print separator line.
4eb007
    cli_printMessage '-' --as-separator-line
4eb007
4eb007
    # Print action message.
4eb007
    cli_printMessage "$WORKDIR" --as-deleting-line
4eb007
4eb007
    # Verify existence of localization working directory. We cannot
4eb007
    # remove translation files that don't exist.
4eb007
    cli_checkFiles "$WORKDIR"
4eb007
4eb007
    # Delete localization working directory using subversion quietly.
4eb007
    svn del "$WORKDIR" --quiet
4eb007
4eb007
}