#! /bin/bash
#
# ssmuse
#
# mimic behavior of old/deprecated ssmuse call

# GPL--start
# This file is part of ssm (Simple Software Manager)
# Copyright (C) 2005-2012 Environment/Environnement Canada
#
# This program 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; version 2
# of the License.
#
# This program 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
# GPL--end

args=()
option=""
value=""
shell_type=$1; shift 1
echo "warning: deprecated; use ssmuse-sh or ssmuse-csh" 1>&2
if [[ "$1" == --noeval || "$0" == *ssmuse ]] ; then
  [[ "$1" == --noeval ]] && shift;
  echo ssmuse-${shell_type} --noeval "${@}"
  ssmuse-${shell_type} --noeval "${@}"
else
  source ssmuse-${shell_type} "${@}"
fi
