c2f3a032e398ca30b7356fe973e57e92bd2efe11
[feisty_meow.git] / scripts / rev_control / 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 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 exit_on_error "changing directory to: $dir"
20 tempfile=$(generate_rev_ctrl_filelist)
21 exit_on_error "generating revision control file list"
22 popd &>/dev/null
23
24 perform_revctrl_action_on_file "$tempfile" do_report_new
25 exit_on_error "running revision control report"
26