papirus-icon-theme/tools
2016-12-08 14:50:41 +04:00
..
_test Add tools/_test and cleanup 2016-12-07 18:46:59 +02:00
work rename template & moved scripts to tools 2016-12-08 14:50:41 +04:00
_fix_color_scheme.sh Add 'stop-color'. Prevent problems with '*-color' properties 2016-12-08 01:38:10 +02:00
convert-color-scheme-to-dark.sh rename template & moved scripts to tools 2016-12-08 14:50:41 +04:00
copy-to-theme.sh rename template & moved scripts to tools 2016-12-08 14:50:41 +04:00
README.md Update tools/README.md 2016-12-08 00:08:05 +02:00
run_on_dirs.sh Add variable SCRIPT_DIR #201 2016-12-08 00:51:29 +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