#!/bin/sh

# samfile
# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010 Joseph Rosevear

# This file is part of The SAM Kernel.

# The SAM Kernel 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.

# The SAM Kernel 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/>.



# JHR 100112 I modified this, because $sam_file is now the file (samn)
# followed by the sam number (the argument for samn).  So I had to
# extract just_file from $sam_file.

just_file=`echo $sam_file | (read word balance; echo $word)`

echo "viewing file $sam_go/$just_file . . ."
pause

sam_view $sam_go/$just_file 
#if [ "$sh_flag" = "" ]; then menu; fi
con_menu
