Mercurial > hg > config
annotate bin/desvn.sh @ 2:3530d50c97ff
adding desvn.sh file to remove svn directories
author | k0s <k0scist@gmail.com> |
---|---|
date | Thu, 15 Oct 2009 13:01:24 -0400 |
parents | |
children |
rev | line source |
---|---|
2
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
1 #!/bin/bash |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
2 |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
3 desvn() { |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
4 |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
5 if [ "$#" == "1" ] |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
6 then |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
7 cd $1 |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
8 fi |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
9 |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
10 svn ls | grep '.*/$' | while read line |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
11 do |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
12 desvn $line |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
13 done |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
14 rm -rf .svn |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
15 |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
16 if [ "$#" == "1" ] |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
17 then |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
18 cd .. |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
19 fi |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
20 |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
21 |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
22 } |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
23 |
3530d50c97ff
adding desvn.sh file to remove svn directories
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
24 desvn |