#!/bin/sh

# samfile
# Copyright (C) 2025 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 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.

# Joseph Rosevear 230512 I replaced a line with an invocation of
# con_menu, which does the same thing.

# Joseph Rosevear 230522 I removed the invocation of con_menu.



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

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

sam_view $sam_go/$just_file 
