Skip to content

A clean filter for SVG for Git and other applications. Currently it strips out personal information and metadata not suited for version controlling.

Notifications You must be signed in to change notification settings

brlin-tw/Clean-Filter-for-SVG

Repository files navigation

用於 SVG 的清潔過濾器
Clean Filter for SVG

Build Status of the latest development snapshot on Travis CISnap Status
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

原作者
Original Author

林博仁

如何使用
How to use?

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

  1. Install Snapd if you haven't, make sure to restart your login session to make the environment changes take effect

  2. Install the clean-filter-for-svg snap

    Get it from the Snap Store安裝軟體敬請移駕 Snap Store

  3. 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
    
  4. Merge the following git-config(1) configuration:

    # Project-specific Git Configuration
    # Documentation: manpage: git-config(1)
    [filter "svg"]
    	clean = "clean-filter-for-svg"
    
    
  5. 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.

If your system doesn't support Snapd

  1. Install XMLStarlet Command Line XML Toolkit, which is this software's runtime dependency. Make sure the xmlstarlet command is in your command search PATHs

  2. Clone this Git repository as your repo's submodule

  3. 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
    
  4. 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\""
    
    
  5. 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.

Known alternatives

智慧財產授權條款
Intellectual Property License

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

About

A clean filter for SVG for Git and other applications. Currently it strips out personal information and metadata not suited for version controlling.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages