Blame Scripts/Functions/Render/render_svg_checkExportId.sh

e75c76
#!/bin/bash
e75c76
#
e75c76
# svg_checkExportId.sh -- This function standardizes the export id
e75c76
# used inside svg files and the way of verify them.
e75c76
#
e75c76
# Copyright (C) 2009, 2010, 2011 The CentOS Project
e75c76
#
e75c76
# This program is free software; you can redistribute it and/or modify
e75c76
# it under the terms of the GNU General Public License as published by
e75c76
# the Free Software Foundation; either version 2 of the License, or (at
e75c76
# your option) any later version.
e75c76
#
e75c76
# This program is distributed in the hope that it will be useful, but
e75c76
# WITHOUT ANY WARRANTY; without even the implied warranty of
e75c76
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
e75c76
# General Public License for more details.
e75c76
#
e75c76
# You should have received a copy of the GNU General Public License
e75c76
# along with this program; if not, write to the Free Software
e75c76
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
e75c76
#
e75c76
# ----------------------------------------------------------------------
e75c76
# $Id$
e75c76
# ----------------------------------------------------------------------
e75c76
e75c76
function svg_checkExportId {
e75c76
e75c76
    # Check export id inside design templates.
e75c76
    grep "id=\"$EXPORTID\"" $INSTANCE > /dev/null
e75c76
    if [[ $? -gt 0 ]];then
e75c76
        cli_printMessage "`eval_gettext "There is not export id (\\\$EXPORTID) inside \\\"\\\$TEMPLATE\\\"."`" --as-error-line
e75c76
    fi
e75c76
e75c76
}