#!/bin/sh

# hold
# Copyright (C) 2023 Joseph Rosevear, San Diego CA, USA.

# This file is part of a distribution SAM.

# SAM is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your
# option) any later version.

# SAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.



# Joseph Rosevear I wrote this script.

# Joseph Rosevear 200918 I fixed a bug by replacing

#    sam1-5

# with

#    sam1 5

# It seems I made some changes to SAM that affected this script.  There
# is no longer a sam1-5 command.



if ! [ "$*" = "" ]; then 
   echo
   echo Doing $* . . .
   echo
   echo Holding place in script by starting new SAM session.
   echo To un-do the above use \"exit\" to terminate this SAM session.
   echo You will be returned to your previous session.
   pause
   $*
else
   echo
   echo Holding place in script by starting new SAM session with
   echo
   echo $level
   echo
   echo as the local menu.  When you are finished with this
   echo menu use \"exit\".  The script will then finish, and you
   echo will be returned to the previous menu.
   pause
fi

if [ "$sam_add" = "" ]; then
   $sam_go/sam1 5 $level - final
else
   $sam_go/sam1 5 $level $sam_add final
fi
