added code to fix bind on vm
[feisty_meow.git] / scripts / rev_control / rcheckin.sh
1 #!/bin/bash
2 # checks in the updated files in a set of folders checked out from subversion
3 # or git.  this can take a directory as parameter, but will default to the
4 # current working directory.  all the directories under the passed directory
5 # will be examined.
6
7 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
8 source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
9
10 ##############
11
12 dir="$1"; shift
13 if [ -z "$dir" ]; then
14   dir=.
15 fi
16
17 pushd "$dir" &>/dev/null
18 test_or_die "changing to directory: $dir"
19 tempfile=$(generate_rev_ctrl_filelist)
20 test_or_die "generating revision control file list"
21 popd &>/dev/null
22
23 perform_revctrl_action_on_file "$tempfile" do_checkin
24 test_or_die "doing a check-in on: $tempfile"
25