papirus-icon-theme/tools
2016-12-11 20:14:36 +02:00
..
_test Add tools/_test and cleanup 2016-12-07 18:46:59 +02:00
work Cleaning template files 2016-12-11 20:14:36 +02:00
_clean_style_attr.sh Improve regex 2016-12-11 02:17:38 +02:00
_fix_color_scheme.sh Improve regex 2016-12-11 02:17:38 +02:00
README.md Update tools/README.md 2016-12-08 00:08:05 +02:00
run_on_dirs.sh Added tools/_clean_style_attr.sh 2016-12-10 15:26:37 +02:00
run_on_files.sh Added tools/_clean_style_attr.sh 2016-12-10 15:26:37 +02:00
svgo.yml Prevent delete <clipPath> by SVGO #200 #204 2016-12-06 00:03:29 +02:00

Tools

  • run_on_dirs.sh DIRECTORY... — optimizes and fixes SVG files in the directory
  • run_on_files.sh FILE... — optimizes and fixes the SVG files
  • _fix_color_scheme.sh FILE... — looks in the SVG files for certain colors and replaces them with the corresponding stylesheet class. Fixes the color scheme after Inkscape
  • svgo.ymlSVGO configuraion

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/run_on_files.sh

Optimize and fix SVG files that are committed in 043906b

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