mirror of
https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git
synced 2024-10-19 09:40:47 -04:00
8e6a838abf
* combine scripts run_on_files.sh and run_on_dirs.sh into one * add License/Waiver * update README.md
939 B
939 B
Tools
ffsvg.sh PATH...
— finds, fixes and cleans SVG files_clean_style_attr.sh FILE...
— removes unused properties and removes properties with default values from style attributes inside SVG files (part offfsvg.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 offfsvg.sh
)_svgo.yml
— SVGO configuraion (part offfsvg.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