nice, fixed a long-standing bug where command lines were not printed
[feisty_meow.git] / scripts / rev_control / update_these.sh
index fb0f4495b756692a5c0c6bbd5497dba5731338bd..cdd0119a4219db835229e19a611e8ba0f0a8c8f6 100644 (file)
@@ -1,7 +1,16 @@
 #!/bin/bash
-# a simple script for updating a set of folders on a usb stick from subversion or git.  currently
+# a simple script for updating a set of folders on a usb stick from subversion or git.
+#  currently
 # just runs with no parameters and expects to get all archives from wherever the files originally
 # came from.
+
+dir="$1"; shift
+if [ -z "$dir" ]; then
+  dir=.
+fi
+
+pushd "$dir"
+
 for i in * ; do
   if [ -d "$i" ]; then
     pushd $i
@@ -10,7 +19,13 @@ for i in * ; do
       svn update .
     elif [ -d ".git" ]; then
       git pull 
+    elif [ -d "CVS" ]; then
+      cvs update .
     fi
     popd
   fi
 done
+
+popd
+
+