Created
March 29, 2016 15:21
-
-
Save courtney-rosenthal/611c6db2ede1c11f9732 to your computer and use it in GitHub Desktop.
Apply the Subversion svn:ignore property to files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# svnignore - Apply the Subversion svn:ignore property to files. | |
# | |
# Chip Rosenthal | |
# chip@unicom.com | |
USAGE="usage: $0 FILE ..." | |
case "$1" in | |
''|-*) | |
echo "$USAGE" >&2 | |
exit 1 | |
;; | |
esac | |
for p in $@ ; do | |
f=`basename $p` | |
d=`dirname $p` | |
i=`svn propget svn:ignore "$d"` | |
svn propset svn:ignore "$i | |
$f" $d | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment