updated to recurse for checkin and diff, but not super far. just allows us to
[feisty_meow.git] / scripts / rev_control / rev_diff.sh
1 #!/bin/bash
2 # does differences on a set of folders checked out 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 tempfile=$(generate_rev_ctrl_filelist)
15
16 perform_action_on_file "$tempfile" do_diff
17
18
19 #pushd "$dir" &>/dev/null
20 #
21 #for i in * ; do
22 #  if [ -d "$i" ]; then
23 #    echo "[$i]"
24 #    pushd $i &>/dev/null
25 #    # only update if we see a repository living there.
26 #    if [ -d ".svn" ]; then
27 #      svn diff .
28 #    elif [ -d ".git" ]; then
29 #      git diff 
30 #    elif [ -d "CVS" ]; then
31 #      cvs diff .
32 #    fi
33 #    popd &>/dev/null
34 #    echo "======="
35 #  fi
36 #done
37 #
38 #popd &>/dev/null
39