diff --git a/Scripts/Functions/Tuneup/Backends/Svg/Config/metadata.sed b/Scripts/Functions/Tuneup/Backends/Svg/Config/metadata.sed new file mode 100644 index 0000000..199c44d --- /dev/null +++ b/Scripts/Functions/Tuneup/Backends/Svg/Config/metadata.sed @@ -0,0 +1,64 @@ +# This file is the metadata information used by CentOS Artwork SIG on +# its scalable vector graphics (SVG) files. This files is used with +# the regular expression '.*\.svg$' only. +# --------------------------------------------------- +# $Id$ +# --------------------------------------------------- +/<metadata/,/<\/metadata/c\ + <metadata\ + id="CENTOSMETADATA">\ + <rdf:RDF>\ + <cc:Work\ + rdf:about="">\ + <dc:format>image/svg+xml</dc:format>\ + <dc:type\ + rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\ + <cc:license\ + rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" />\ + <dc:title>=TITLE=</dc:title>\ + <dc:date>=DATE=</dc:date>\ + <dc:creator>\ + <cc:Agent>\ + <dc:title>=COPYRIGHT_HOLDER=</dc:title>\ + </cc:Agent>\ + </dc:creator>\ + <dc:rights>\ + <cc:Agent>\ + <dc:title>=COPYRIGHT_HOLDER=</dc:title>\ + </cc:Agent>\ + </dc:rights>\ + <dc:publisher>\ + <cc:Agent>\ + <dc:title>=COPYRIGHT_HOLDER=</dc:title>\ + </cc:Agent>\ + </dc:publisher>\ + <dc:identifier>=URL=</dc:identifier>\ + <dc:source>=URL=</dc:source>\ + <dc:relation>=URL=</dc:relation>\ + <dc:language>=LOCALE=</dc:language>\ + <dc:subject>\ + <rdf:Bag>\ +=KEYWORDS=\ + </rdf:Bag>\ + </dc:subject>\ + <dc:coverage>=COPYRIGHT_HOLDER=</dc:coverage>\ + <dc:description />\ + <dc:contributor />\ + </cc:Work>\ + <cc:License\ + rdf:about="http://creativecommons.org/licenses/by-sa/3.0/">\ + <cc:permits\ + rdf:resource="http://creativecommons.org/ns#Reproduction" />\ + <cc:permits\ + rdf:resource="http://creativecommons.org/ns#Distribution" />\ + <cc:requires\ + rdf:resource="http://creativecommons.org/ns#Notice" />\ + <cc:requires\ + rdf:resource="http://creativecommons.org/ns#Attribution" />\ + <cc:permits\ + rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />\ + <cc:requires\ + rdf:resource="http://creativecommons.org/ns#ShareAlike" />\ + </cc:License>\ + </rdf:RDF>\ + </metadata> diff --git a/Scripts/Functions/Tuneup/Backends/Svg/Config/svg_metadata.sed b/Scripts/Functions/Tuneup/Backends/Svg/Config/svg_metadata.sed deleted file mode 100644 index 199c44d..0000000 --- a/Scripts/Functions/Tuneup/Backends/Svg/Config/svg_metadata.sed +++ /dev/null @@ -1,64 +0,0 @@ -# This file is the metadata information used by CentOS Artwork SIG on -# its scalable vector graphics (SVG) files. This files is used with -# the regular expression '.*\.svg$' only. -# --------------------------------------------------- -# $Id$ -# --------------------------------------------------- -/<metadata/,/<\/metadata/c\ - <metadata\ - id="CENTOSMETADATA">\ - <rdf:RDF>\ - <cc:Work\ - rdf:about="">\ - <dc:format>image/svg+xml</dc:format>\ - <dc:type\ - rdf:resource="http://purl.org/dc/dcmitype/StillImage" />\ - <cc:license\ - rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" />\ - <dc:title>=TITLE=</dc:title>\ - <dc:date>=DATE=</dc:date>\ - <dc:creator>\ - <cc:Agent>\ - <dc:title>=COPYRIGHT_HOLDER=</dc:title>\ - </cc:Agent>\ - </dc:creator>\ - <dc:rights>\ - <cc:Agent>\ - <dc:title>=COPYRIGHT_HOLDER=</dc:title>\ - </cc:Agent>\ - </dc:rights>\ - <dc:publisher>\ - <cc:Agent>\ - <dc:title>=COPYRIGHT_HOLDER=</dc:title>\ - </cc:Agent>\ - </dc:publisher>\ - <dc:identifier>=URL=</dc:identifier>\ - <dc:source>=URL=</dc:source>\ - <dc:relation>=URL=</dc:relation>\ - <dc:language>=LOCALE=</dc:language>\ - <dc:subject>\ - <rdf:Bag>\ -=KEYWORDS=\ - </rdf:Bag>\ - </dc:subject>\ - <dc:coverage>=COPYRIGHT_HOLDER=</dc:coverage>\ - <dc:description />\ - <dc:contributor />\ - </cc:Work>\ - <cc:License\ - rdf:about="http://creativecommons.org/licenses/by-sa/3.0/">\ - <cc:permits\ - rdf:resource="http://creativecommons.org/ns#Reproduction" />\ - <cc:permits\ - rdf:resource="http://creativecommons.org/ns#Distribution" />\ - <cc:requires\ - rdf:resource="http://creativecommons.org/ns#Notice" />\ - <cc:requires\ - rdf:resource="http://creativecommons.org/ns#Attribution" />\ - <cc:permits\ - rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />\ - <cc:requires\ - rdf:resource="http://creativecommons.org/ns#ShareAlike" />\ - </cc:License>\ - </rdf:RDF>\ - </metadata> diff --git a/Scripts/Functions/Tuneup/Backends/Svg/svg_doMetadata.sh b/Scripts/Functions/Tuneup/Backends/Svg/svg_doMetadata.sh index 80b8bd6..61832dd 100755 --- a/Scripts/Functions/Tuneup/Backends/Svg/svg_doMetadata.sh +++ b/Scripts/Functions/Tuneup/Backends/Svg/svg_doMetadata.sh @@ -27,7 +27,7 @@ function svg_doMetadata { # Define template file name. - local TEMPLATE="${TUNEUP_BACKEND_CONFIG}/$(cli_getRepoName ${TUNEUP_BACKEND} -f)_metadata.sed" + local TEMPLATE="${TUNEUP_BACKEND_CONFIG}/metadata.sed" # Check template file existence. cli_checkFiles $TEMPLATE diff --git a/Scripts/Functions/Tuneup/Backends/Svg/svg_doUnusedItems.sh b/Scripts/Functions/Tuneup/Backends/Svg/svg_doUnusedItems.sh deleted file mode 100755 index 978e8fb..0000000 --- a/Scripts/Functions/Tuneup/Backends/Svg/svg_doUnusedItems.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# -# svg_doUnusedItems.sh -- This function removes all unused items from -# the <lt>defs<gt> section of the SVG file. -# -# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG -# -# 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 svg_doUnusedItems { - - # Vacuum unused svg definition using inkscape. - inkscape --vacuum-defs $FILE &> /dev/null - -} diff --git a/Scripts/Functions/Tuneup/Backends/Svg/svg_doVacuumDefs.sh b/Scripts/Functions/Tuneup/Backends/Svg/svg_doVacuumDefs.sh new file mode 100755 index 0000000..1a2fa63 --- /dev/null +++ b/Scripts/Functions/Tuneup/Backends/Svg/svg_doVacuumDefs.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# +# svg_doVacuumDefs.sh -- This function removes all unused items from +# the <lt>defs<gt> section of the SVG file. +# +# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG +# +# 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 svg_doVacuumDefs { + + # Vacuum unused svg definition using inkscape. + inkscape --vacuum-defs $FILE &> /dev/null + +}