papirus-icon-theme/tools
2018-01-16 12:58:25 +04:00
..
work update templates #1054 2018-01-16 12:58:25 +04:00
_clean_attrs.sed
_clean_style_attr.sed
_fix_color_scheme.sh Revert "Update tools #917" 2017-11-23 12:15:30 +04:00
_scour.sh
_svgo.yml
build_color_folders.sh Update color of paper for folders #1055 2018-01-14 16:06:42 +02:00
ffsvg.sh Update tools 2017-11-05 09:46:02 +02:00
README.md

Tools

  • ffsvg.sh PATH... — finds, fixes and cleans SVG files
  • _clean_attrs.sed — removes unused attributes and removes attributes with default values from elements inside SVG files (part of ffsvg.sh)
  • _clean_style_attr.sed — removes unused properties and removes properties with default values from style attributes inside SVG files (part of ffsvg.sh)
  • _fix_color_scheme.sh FILE... — looks in the SVG files for certain colors and replaces them with the corresponding stylesheet class. Fixes a color scheme after Inkscape (part of ffsvg.sh)
  • _scour.sh FILE... — Scour wrapper (part of ffsvg.sh)
  • _svgo.ymlSVGO configuraion (part of ffsvg.sh)

Useful snippets

Optimize and fix SVG files that are added or modified but not committed (recommended)

git status --porcelain | awk '/A|M/{print $2}' | xargs ./tools/ffsvg.sh

Optimize and fix SVG files that are committed in 043906b

git show --name-only 043906b | xargs ./tools/ffsvg.sh