attempting to clean noise about x11 forwarding from checkin also.
[feisty_meow.git] / scripts / rev_control / update_these.sh
1 #!/bin/bash
2 # a simple script for updating a set of folders on a usb stick from subversion or git.  currently
3 # just runs with no parameters and expects to get all archives from wherever the files originally
4 # came from.
5 for i in * ; do
6   if [ -d "$i" ]; then
7     pushd $i
8     # only update if we see a repository living there.
9     if [ -d ".svn" ]; then
10       svn update .
11     elif [ -d ".git" ]; then
12       git pull 
13     elif [ -d "CVS" ]; then
14       cvs update .
15     fi
16     popd
17   fi
18 done