aboutsummaryrefslogtreecommitdiffstats
path: root/svnignore.sh
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2010-10-25 07:26:35 +0000
committerManolo Carrasco <manolo@apache.org>2010-10-25 07:26:35 +0000
commitf59429aafc0f0a63e9c18c04c479e736aaf8ccef (patch)
tree81c24cc61febec9ec9d327ed4012911da6f2891c /svnignore.sh
parent1e350101f509e0c8401fcb5b35a6fce7d0208b9b (diff)
downloadgwtquery-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-xsvnignore.sh23
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
+
+