new fortune
[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 save_terminal_title
12
13 ##############
14
15 dir="$1"; shift
16 if [ -z "$dir" ]; then
17   dir=.
18 fi
19
20 pushd "$dir" &>/dev/null
21 exit_on_error "changing to directory: $dir"
22 tempfile=$(generate_rev_ctrl_filelist)
23 popd &>/dev/null
24
25 perform_revctrl_action_on_file "$tempfile" do_revctrl_diff
26 exit_on_error "performing revision control action do_revctrl_diff on: $tempfile"
27
28 restore_terminal_title
29