cleaned up commented code that moved to vers ctrl lib.
[feisty_meow.git] / scripts / rev_control / rev_update.sh
1 #!/bin/bash
2 # a simple script for updating a set of folders from subversion or git.
3 # this can take a directory as parameter, but will default to the current
4 # working directory.  all the directories under the passed directory will
5 # be examined.
6
7 dir="$1"; shift
8 if [ -z "$dir" ]; then
9   dir=.
10 fi
11
12 source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
13
14 pushd "$dir" &>/dev/null
15
16 for i in * ; do
17   if [ -d "$i" ]; then
18     echo "[$i]"
19     do_update "$i"
20     echo "======="
21   fi
22 done
23
24 popd &>/dev/null
25