A clean filter for SVG for Git and other applications. Currently it strips out personal information and metadata not suited for version controlling.
https://github.com/Lin-Buo-Ren/Clean-Filter-for-SVG
林博仁
The following instructions is for projects that're using Git as their VCS to integrate Clean Filter for SVG, you may use this software for other purposes as well.
If your system supports Snapd
-
Install Snapd if you haven't, make sure to restart your login session to make the environment changes take effect
-
Install the clean-filter-for-svg snap
-
Merge the following gitattributes(5) file setup:
# gitattributes - defining attributes per path # https://git-scm.com/docs/gitattributes ## Setup filters for SVG ## Refer .gitconfig for more information *.svg filter=svg
-
Merge the following git-config(1) configuration:
# Project-specific Git Configuration # Documentation: manpage: git-config(1) [filter "svg"] clean = "clean-filter-for-svg"
-
Profit! The SVG files checked into the staging area will now passed through the clean filter, you may want to implement a development environment setup script like this to ease other contributer's setup.
-
Install XMLStarlet Command Line XML Toolkit, which is this software's runtime dependency. Make sure the
xmlstarlet
command is in your command searchPATH
s -
Clone this Git repository as your repo's submodule
-
Merge the following gitattributes(5) file setup:
# gitattributes - defining attributes per path # https://git-scm.com/docs/gitattributes ## Setup filters for SVG ## Refer .gitconfig for more information *.svg filter=svg
-
Merge the following git-config(1) configuration:
# Project-specific Git Configuration # Documentation: manpage: git-config(1) [filter "svg"] clean = "\"./path/to/the/submodule/Clean Filter for SVG.bash\""
-
Profit! The SVG files checked into the staging area will now pass through the clean filter, you may want to implement a development environment setup script like this to ease other contributer's setup.
GNU GPLv3 or any later releases you prefer
這個專案介紹文件是基於專案介紹文件範本
This README is based on Project README Template
http://github.com/Lin-Buo-Ren/Project-README-templates