papirus-icon-theme/tools
Sergei Eremenko c213eddac7 Fixes 00a9520 and 75b18c4
* Cleanup
2017-07-28 08:55:29 +03:00
..
work Fixes 00a9520 and 75b18c4 2017-07-28 08:55:29 +03:00
_clean_attrs.sed Update tools 2017-05-13 22:43:28 +03:00
_clean_style_attr.sed Fix commands order in _clean_style_attr.sed 2017-07-21 22:11:37 +03:00
_fix_color_scheme.sh Update tools #343 2017-02-19 15:54:11 +02:00
_scour.sh Update tools 2017-07-26 00:19:08 +03:00
_svgo.yml Update tools 2017-07-26 00:19:08 +03:00
ffsvg.sh Fix commands order in _clean_style_attr.sed 2017-07-21 22:11:37 +03:00
folder_color.sh Update scripts. Add new-symlink.sh script 2017-02-18 15:43:24 +02:00
README.md Update tools 2017-05-13 22:43:28 +03:00

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