/[scripts]/trunk/svn-ignore.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/svn-ignore.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 53 - (hide annotations)
Thu Sep 6 23:46:15 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: application/x-sh
File size: 440 byte(s)
small script to collect all unversioned files in current repository, open
list in $EDITOR and add result to correct svn:ignore

1 dpavlin 53 #!/bin/sh
2    
3     svn=svn
4     list=/tmp/list
5     tmp=/tmp/svn:ignore
6    
7     test ! -e '.svn' && svn=svk
8     test -z "$EDITOR" && EDITOR=vi
9    
10     $svn status | grep '^\?' | awk '{ print $2 }' > $list
11     $EDITOR $list
12    
13     cat $list | while read path ; do
14     # echo "+ $path"
15     file=`basename $path`
16     dir=`dirname $path`
17     test "$file" == "$dir" && dir='.'
18     echo "- $dir / $file"
19     $svn propget svn:ignore $dir > $tmp
20     echo $file >> $tmp
21     svk propset svn:ignore "`cat $tmp`" $dir
22     done

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26