diff options
author | Manolo Carrasco <manolo@apache.org> | 2010-10-25 07:26:35 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2010-10-25 07:26:35 +0000 |
commit | f59429aafc0f0a63e9c18c04c479e736aaf8ccef (patch) | |
tree | 81c24cc61febec9ec9d327ed4012911da6f2891c /svnignore.sh | |
parent | 1e350101f509e0c8401fcb5b35a6fce7d0208b9b (diff) | |
download | gwtquery-f59429aafc0f0a63e9c18c04c479e736aaf8ccef.tar.gz gwtquery-f59429aafc0f0a63e9c18c04c479e736aaf8ccef.zip |
svnignore script nows accepts arguments to add recursively folders/files, and preserves the old svnignore table
Diffstat (limited to 'svnignore.sh')
-rwxr-xr-x | svnignore.sh | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/svnignore.sh b/svnignore.sh index 3922238f..81163145 100755 --- a/svnignore.sh +++ b/svnignore.sh @@ -1,3 +1,20 @@ -svn propset svn:ignore --recursive -F .svnignore . -echo "current properties:" -svn propget svn:ignore . +[ -z "$1" ] && exit + + +p=`pwd` + +while [ -n "$1" ] +do + for i in `find . -name $1` + do + d=`dirname $i` + cd $p + cd $d + svn propget svn:ignore . > /tmp/$$ + echo $1 >> /tmp/$$ + svn propset svn:ignore -F /tmp/$$ . + done + shift +done + + |