X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=blobdiff_plain;f=scripts%2Frev_control%2Fdiff_repos.sh;fp=scripts%2Frev_control%2Fdiff_repos.sh;h=eb02719e047811eb6cdb44cfeb13185b66a5b6c6;hp=0000000000000000000000000000000000000000;hb=e7b713d468feee8c4740708f21246e0d27fb35cc;hpb=8dcf545d60ddbc4834a9350d9eccf2390226ffc8 diff --git a/scripts/rev_control/diff_repos.sh b/scripts/rev_control/diff_repos.sh new file mode 100644 index 00000000..eb02719e --- /dev/null +++ b/scripts/rev_control/diff_repos.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# does differences on a set of folders checked out from subversion or git. +# this can take a directory as parameter, but will default to the current +# working directory. all the directories under the passed directory will +# be examined. + +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" +source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh" + +############## + +dir="$1"; shift +if [ -z "$dir" ]; then + dir=. +fi + +pushd "$dir" &>/dev/null +test_or_die "changing to directory: $dir" +tempfile=$(generate_rev_ctrl_filelist) +popd &>/dev/null + +perform_revctrl_action_on_file "$tempfile" do_diff +test_or_die "performing revision control action do_diff on: $tempfile" +