Blame Scripts/CentOS-Art/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
#
2fe9b7
# Copyright (C) 2009, 2010, 2011 The CentOS Project
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
2fe9b7
# the Free Software Foundation; either version 2 of the License, or (at
2fe9b7
# 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.
989abc
    cli_printMessage "$L10N_WORKDIR" --as-deleting-line
4eb007
4eb007
    # Verify existence of localization working directory. We cannot
4eb007
    # remove translation files that don't exist.
989abc
    cli_checkFiles "$L10N_WORKDIR"
4eb007
4eb007
    # Delete localization working directory using subversion quietly.
989abc
    svn del "$L10N_WORKDIR" --quiet
4eb007
4eb007
}