Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # ###################################################################################
- # Shell script to transform the .gitignore config to be subversion compatible and
- # apply it to the subversion global-ignores configuration.
- #
- # Author: Filip De Vos
- # Last updated: Jan 26 2010
- #
- # License: WTFPL
- #
- # Compatibility: Tested on Windows 7 from the msysgit bash shell.
- #
- # to use this script just call it from the same folder as your .gitignore file
- # you might have to make it executable with chmod +x apply_to_svn_config.sh
- #
- # Notes: This script is very naive because I totally stink at bash scripting.
- #
- # ###################################################################################
- sed "s%^.*global-ignores =.*%global-ignores = .git `cat .gitignore | sed -e "/^#/d" | tr '\r\n' ' '`%g" ~/.subversion/config > updated_config
- cp updated_config ~/.subversion/config
- sed "s%^.*global-ignores =.*%global-ignores = .git `cat .gitignore | sed -e "/^#/d" | tr '\r\n' ' '`%g" ~/AppData/Roaming/Subversion/config > updated_config
- cp updated_config ~/AppData/Roaming/Subversion/config
- rm updated_config
Add Comment
Please, Sign In to add comment