added removal of temp file with sorted file list
[feisty_meow.git] / scripts / rev_control / rcheckin.sh
index 1c5400fb8562105a439673c01efc0136652e8871..185de49e8c7a832351d4ada1a107611caa36bc44 100644 (file)
@@ -7,6 +7,8 @@
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
 
+save_terminal_title
+
 ##############
 
 dir="$1"; shift
@@ -15,11 +17,14 @@ if [ -z "$dir" ]; then
 fi
 
 pushd "$dir" &>/dev/null
-test_or_die "changing to directory: $dir"
+exit_on_error "changing to directory: $dir"
 tempfile=$(generate_rev_ctrl_filelist)
-test_or_die "generating revision control file list"
+exit_on_error "generating revision control file list"
 popd &>/dev/null
 
-perform_revctrl_action_on_file "$tempfile" do_checkin
-test_or_die "doing a check-in on: $tempfile"
+perform_revctrl_action_on_file "$tempfile" do_revctrl_checkin
+exit_on_error "doing a check-in on: $tempfile"
+
+rm "$tempfile"
 
+restore_terminal_title