annotate bin/desvn.sh @ 123:e4746a046446

adding install script for inclusion in setup.py
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 13 Jan 2011 11:24:31 -0800
parents 3530d50c97ff
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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