added removal of temp file with sorted file list
[feisty_meow.git] / scripts / rev_control / rcheckin.sh
index 1c50d517776fe87aecbdc1a82b3f5145c3d6be13..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
@@ -14,12 +16,15 @@ if [ -z "$dir" ]; then
   dir=.
 fi
 
-
 pushd "$dir" &>/dev/null
-test_or_die "changing to directory: $dir"
+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
-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