34414ac716aed69a072e0df065f009567c592b09
[feisty_meow.git] / scripts / rev_control / rev_report_new.sh
1 #!/bin/bash
2 # this script reports files that are not checked in yet in a set of folders.
3 # it works with subversion only, since git handles new files well whereas
4 # subversion ignores them until you tell it about them.  this script can take
5 # a directory as a parameter, but will default to the current directory.
6 # all the directories under the passed directory will be examined.
7
8 dir="$1"; shift
9 if [ -z "$dir" ]; then
10   dir=.
11 fi
12
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_action_on_file "$tempfile" do_report_new
20