Blame Scripts/Functions/Tuneup/tuneup_doSvgUnusedItems.sh

641be4
#!/bin/bash
641be4
#
0a3f74
# tuneup_doSvgUnusedItems.sh -- This function removes all unused items
0a3f74
# from the <lt>defs<gt> section of the SVG file.
641be4
#
9f5f2e
# Copyright (C) 2009-2011 Alain Reguera Delgado
641be4
# 
7cd8e9
# This program is free software; you can redistribute it and/or
7cd8e9
# modify it under the terms of the GNU General Public License as
7cd8e9
# published by the Free Software Foundation; either version 2 of the
7cd8e9
# License, or (at your option) any later version.
641be4
# 
641be4
# This program is distributed in the hope that it will be useful, but
641be4
# WITHOUT ANY WARRANTY; without even the implied warranty of
641be4
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
641be4
# General Public License for more details.
641be4
#
641be4
# You should have received a copy of the GNU General Public License
641be4
# along with this program; if not, write to the Free Software
641be4
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
641be4
# USA.
641be4
# 
641be4
# ----------------------------------------------------------------------
641be4
# $Id$
641be4
# ----------------------------------------------------------------------
641be4
0a3f74
function tuneup_doSvgUnusedItems {
0a3f74
0a3f74
    # Vacuum unused svg definition using inkscape.
0a3f74
    inkscape --vacuum-defs $FILE &> /dev/null
641be4
641be4
}