modified error handling methods
[feisty_meow.git] / scripts / rev_control / rcheckin.sh
index cfb72c294e384f1fc49f6ba1833cdaf732ba5f7b..268bed815d110951a207c85df95ab75ec2b22f42 100644 (file)
@@ -4,17 +4,22 @@
 # 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
 
-source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
-source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
-
 pushd "$dir" &>/dev/null
+exit_on_error "changing to directory: $dir"
 tempfile=$(generate_rev_ctrl_filelist)
+exit_on_error "generating revision control file list"
 popd &>/dev/null
 
 perform_revctrl_action_on_file "$tempfile" do_checkin
+exit_on_error "doing a check-in on: $tempfile"