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
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
#
dcd347
# This program is distributed in the hope that it will be useful,
dcd347
# but 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.
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
}