From 3c6a71508f72933d4d967aa32f4d0cd99f888724 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 24 2011 00:40:28 +0000 Subject: Rename tuneup_doSvgUnusedItems to tuneup_svg_doUnusedItems. --- diff --git a/Scripts/Functions/Tuneup/tuneup_doSvg.sh b/Scripts/Functions/Tuneup/tuneup_doSvg.sh index 48270f6..5d2aa22 100755 --- a/Scripts/Functions/Tuneup/tuneup_doSvg.sh +++ b/Scripts/Functions/Tuneup/tuneup_doSvg.sh @@ -29,6 +29,6 @@ function tuneup_doSvg { tuneup_doSvgMetadata # Remove all unused items. - tuneup_doSvgUnusedItems + tuneup_svg_doUnusedItems } diff --git a/Scripts/Functions/Tuneup/tuneup_doSvgUnusedItems.sh b/Scripts/Functions/Tuneup/tuneup_doSvgUnusedItems.sh deleted file mode 100755 index 9d21ac8..0000000 --- a/Scripts/Functions/Tuneup/tuneup_doSvgUnusedItems.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# -# tuneup_doSvgUnusedItems.sh -- This function removes all unused items -# from the defs section of the SVG file. -# -# Copyright (C) 2009, 2010, 2011 The CentOS Project -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or (at -# your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- - -function tuneup_doSvgUnusedItems { - - # Vacuum unused svg definition using inkscape. - inkscape --vacuum-defs $FILE &> /dev/null - -} diff --git a/Scripts/Functions/Tuneup/tuneup_svg_doUnusedItems.sh b/Scripts/Functions/Tuneup/tuneup_svg_doUnusedItems.sh new file mode 100755 index 0000000..63fbccd --- /dev/null +++ b/Scripts/Functions/Tuneup/tuneup_svg_doUnusedItems.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# +# tuneup_svg_doUnusedItems.sh -- This function removes all unused items +# from the defs section of the SVG file. +# +# Copyright (C) 2009, 2010, 2011 The CentOS Project +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +function tuneup_svg_doUnusedItems { + + # Vacuum unused svg definition using inkscape. + inkscape --vacuum-defs $FILE &> /dev/null + +}