Mercurial > hg > config
annotate bin/desvn.sh @ 148:7a4c86310463
add another variable
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 11 Jul 2011 15:35:29 -0700 |
parents | 3530d50c97ff |
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 |