Blame Scripts/Functions/Tuneup/Backends/Svg/svg_doVacuumDefs.sh

641be4
#!/bin/bash
641be4
#
b8145c
# svg_doVacuumDefs.sh -- This function removes all unused items from
2a08b7
# the <lt>defs<gt> section of the SVG file.
641be4
#
3b0984
# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG
fa95b1
#
fa95b1
# This program is free software; you can redistribute it and/or modify
fa95b1
# it under the terms of the GNU General Public License as published by
dcd347
# the Free Software Foundation; either version 2 of the License, or (at
dcd347
# your option) any later version.
fa95b1
#
74a058
# This program is distributed in the hope that it will be useful, but
74a058
# 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
dcd347
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
7ac5a5
#
641be4
# ----------------------------------------------------------------------
641be4
# $Id$
641be4
# ----------------------------------------------------------------------
641be4
b8145c
function svg_doVacuumDefs {
0a3f74
0a3f74
    # Vacuum unused svg definition using inkscape.
127c51
    inkscape --vacuum-defs $FILE &> /dev/null
641be4
641be4
}