changeset 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 f58e8e81e16b
children a7188391b4ce
files bin/desvn.sh
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/desvn.sh	Thu Oct 15 13:01:24 2009 -0400
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+desvn() {
+    
+    if [ "$#" == "1" ]
+    then
+        cd $1
+    fi
+
+    svn ls | grep '.*/$' | while read line
+    do
+        desvn $line
+    done
+    rm -rf .svn
+
+    if [ "$#" == "1" ]
+    then
+        cd ..
+    fi
+
+
+}
+
+desvn
\ No newline at end of file