papirus-icon-theme/tools
2016-12-09 19:41:21 +02:00
..
_test Add tools/_test and cleanup 2016-12-07 18:46:59 +02:00
work Add new sizes for devices 2016-12-09 16:40:58 +02:00
_fix_color_scheme.sh Make case-insensitive 2016-12-09 19:41:21 +02:00
README.md Update tools/README.md 2016-12-08 00:08:05 +02:00
run_on_dirs.sh Make case sensitive 2016-12-08 14:58:38 +02:00
run_on_files.sh Add variable SCRIPT_DIR #201 2016-12-08 00:51:29 +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