mirror of
https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git
synced 2024-10-19 01:30:52 -04:00
836 B
836 B
Tools
run_on_dirs.sh DIRECTORY...
— optimizes and fixes SVG files in the directoryrun_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 Inkscapesvgo.yml
— SVGO 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