Mercurial > hg > config
annotate bin/desvn.sh @ 248:c7dd4631b526
adding a module for easy jokes; should go -> bitsyapps, etc
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 01 Dec 2012 17:15:46 -0800 |
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 |