attempting to fix naive system updater
[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/core/launch_feisty_meow.sh"
13 source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
14
15 pushd "$dir" &>/dev/null
16 tempfile=$(generate_rev_ctrl_filelist)
17 popd &>/dev/null
18
19 perform_revctrl_action_on_file "$tempfile" do_diff
20