new version
[feisty_meow.git] / scripts / rev_control / diff_repos.sh
1 #!/bin/bash
2
3 # does differences on a set of folders checked out from subversion or git.
4 # this can take a directory as parameter, but will default to the current
5 # working directory.  all the directories under the passed directory will
6 # be examined.
7
8 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
9 source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
10
11 ##############
12
13 dir="$1"; shift
14 if [ -z "$dir" ]; then
15   dir=.
16 fi
17
18 pushd "$dir" &>/dev/null
19 test_or_die "changing to directory: $dir"
20 tempfile=$(generate_rev_ctrl_filelist)
21 popd &>/dev/null
22
23 perform_revctrl_action_on_file "$tempfile" do_diff
24 test_or_die "performing revision control action do_diff on: $tempfile"
25